Method | Description | |
---|---|---|
Close ( ) : void |
Closes the TCPConnection.
|
|
Read ( ) : |
Reads an AbstractMessage from the TCPConnection. Will throw an XmlException if an invalid Xml message was received.
|
|
TCPConnection ( String hostname, |
Initializes the TCPConnection to the given hostname / port.
|
|
TCPConnection ( |
Initializes the TCPConnection with the given TcpClient.
|
|
Write ( |
Writes the given AbstractMessage into the TCPConnection.
|
public TCPConnection ( String hostname, |
||
hostname | String | A String with the hostname of the server |
port | A UInt16 with the port of the server. | |
parser | ||
return | System |
public TCPConnection ( |
||
client | The TcpClient to the server. | |
parser | ||
return | System |