public class TCPserverCommLayer extends TCPcommunicationLayer
Constructor and Description |
---|
TCPserverCommLayer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
closeConnection()
Closes this layer and calls closeConnection() on the layer below.
|
boolean |
openConnection(CommLayerParams params)
Opens the connection and sets up the communication stack.
|
getConnectionState, readByte, readDouble, readFloat, readLong, recvData, recvData, sendData
getAbove, getBelow, getRawBytes, sendData, setAbove, setBelow
public boolean openConnection(CommLayerParams params) throws java.io.IOException
ICommunicationLayer
openConnection
in interface ICommunicationLayer
openConnection
in class AbstractCommunicationLayer
params
- CommLayerParams object holding the connection infojava.io.IOException
public boolean closeConnection() throws java.io.IOException
ICommunicationLayer
closeConnection
in interface ICommunicationLayer
closeConnection
in class TCPcommunicationLayer
java.io.IOException