IConnection
Description
- Derived from
Base interface for network connections.
Network connections provided by IConnection implementations are connection oriented and reliable.
Public / Methods
Receive
Receives a sequence of bytes from this network connection.
The number of bytes to receive is the number of ByteBuffer.Remaining bytes in the given ByteBuffer. The received bytes will be written to the buffer beginning at its current ByteBuffer.Position.
- IOException
-
If an I/O error has occurred.
Send
Sends a sequence of bytes over this network connection.
The ByteBuffer.Position and ByteBuffer.Limit of the given ByteBuffer depict the range of bytes in the buffer that will be sent.
- IOException
-
If an I/O error has occurred.