public interface IConnection
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes the connection
|
boolean |
isOpen()
returns whether the connection is open
|
byte[] |
readPacket()
reads the next packet
|
void |
writePacket(byte[] packet)
writes a new packet
|
boolean isOpen()
void close()
throws java.io.IOException
java.io.IOExceptionbyte[] readPacket()
throws java.io.IOException
ClosedConnectionException - - if the connection has been closed.java.io.IOExceptionvoid writePacket(byte[] packet)
throws java.io.IOException
ClosedConnectionException - - if the connection has been closed.java.io.IOException