public interface TransportLayer<P extends Packet<?>>
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.net.InetSocketAddress remoteAddress)
Connect to the remote side
|
void |
disconnect()
Disconnect from the remote side
|
boolean |
isConnected()
Checks if the transport layer is currently connected.
|
void |
write(P packet)
Write the packet to the transport.
|
void write(P packet) throws TransportException
packet - The packet to write.TransportExceptionvoid connect(java.net.InetSocketAddress remoteAddress)
throws java.io.IOException
remoteAddress - The remote address to connect tojava.io.IOExceptionvoid disconnect()
throws java.io.IOException
java.io.IOExceptionboolean isConnected()