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.IOException
byte[] readPacket() throws java.io.IOException
ClosedConnectionException
- - if the connection has been closed.java.io.IOException
void writePacket(byte[] packet) throws java.io.IOException
ClosedConnectionException
- - if the connection has been closed.java.io.IOException