public interface INetworkAgent
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Socket and relieves the other resources.
|
java.net.InetSocketAddress |
getSocketAddress()
Implementation of this method returns Socket Address used for communication.
|
byte[] |
read(int iSize)
Reads the iSize number of bytes from the Socket Stream.
|
void |
write(byte[] buffer)
Write the ByteBuffer to the underlying Socket Stream.
|
byte[] read(int iSize)
throws java.io.IOException
iSize - the number of bytes to be readjava.io.IOException - Signals that an IO Exception occurs.void write(byte[] buffer)
throws java.io.IOException
buffer - the buffer to be written.java.io.IOException - Signals that an IO Exception occurs.void close()
java.net.InetSocketAddress getSocketAddress()