public class TCPAudioMicroServer extends Object implements SensorListener, TCPSensorServer
| Modifier and Type | Field and Description |
|---|---|
protected ObjectOutputStream |
oos |
protected ServerSocket |
serverSocket |
| Constructor and Description |
|---|
TCPAudioMicroServer(InetAddress ip,
int port) |
protected ServerSocket serverSocket
protected ObjectOutputStream oos
public TCPAudioMicroServer(InetAddress ip, int port) throws IOException
IOExceptionpublic String getIp()
getIp in interface TCPSensorServerpublic int getPort()
getPort in interface TCPSensorServerpublic void start()
start in interface TCPSensorServerpublic boolean send(byte[] buffer,
int offset,
int numSamples,
int numReadings)
public void stop()
stop in interface TCPSensorServerpublic void update(Sensor source, SensorData sd)
update in interface SensorListenerpublic void cleanUp()
cleanUp in interface SensorListenerCopyright © 2015. All Rights Reserved.