The methods defined in the TcpIpConnection class are summarized in the following table.
Method | Description |
---|---|
close | Closes a connection to a remote application and returns when the connection is closed |
closeAsynch | Closes a connection to a remote application and returns immediately |
getMaxMessageSize | Returns the maximum message size that can be sent or received at one time |
listen | Waits for a remote application to connect to its port and returns when the connection is established |
listenAsynch | Waits for a remote application to connect to its port and returns immediately |
listenContinuous | Waits for a remote application to connect to its port and returns the new connection on a new instance of the TcpIpConnection class while the original instance is still available for listening on subsequent calls |
listenContinuousAsynch | Waits for remote applications to connect to its port and returns immediately |
open | Establishes a connection to a remote application and returns when the connection is established |
openAsynch | Establishes a connection to a remote application and returns immediately |
readBinary | Reads binary data from the connection and returns when the specified number of bytes has been read or when a block of data is received |
readBinaryAsynch | Reads binary data from the connection and returns immediately |
readUntil | Reads data from the connection and returns when the specified delimiter is found in the data stream |
readUntilAsynch | Reads data from the connection until the specified delimiter is found in the data stream and returns immediately |
writeBinary | Writes binary data to the connection and returns when the operation is complete |
writeBinaryAsynch | Writes binary data to the connection and returns immediately |