public class TCPAccelerometerServer extends Object implements SensorListener, TCPSensorServer
| Modifier and Type | Field and Description |
|---|---|
protected Vector<OutputStream> |
oos |
protected ServerSocket |
serverSocket |
| Constructor and Description |
|---|
TCPAccelerometerServer(InetAddress ip,
int port,
AccelerometerControl accSensor) |
protected ServerSocket serverSocket
protected Vector<OutputStream> oos
public TCPAccelerometerServer(InetAddress ip, int port, AccelerometerControl accSensor) throws IOException
IOExceptionpublic String getIp()
getIp in interface TCPSensorServerpublic int getPort()
getPort in interface TCPSensorServerpublic void start()
start in interface TCPSensorServerpublic void stop()
stop in interface TCPSensorServerpublic void update(Sensor source, SensorData sd)
update in interface SensorListenerpublic void cleanUp()
cleanUp in interface SensorListenerCopyright © 2016. All Rights Reserved.