Interface TransportLayer<P extends Packet<?>>
- All Known Implementing Classes:
AsyncDirectTcpTransport, DirectTcpTransport, TunnelTransport
public interface TransportLayer<P extends Packet<?>>
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(InetSocketAddress remoteAddress) Connect to the remote sidevoidDisconnect from the remote sidebooleanChecks if the transport layer is currently connected.voidWrite the packet to the transport.
-
Method Details
-
write
Write the packet to the transport.- Parameters:
packet- The packet to write.- Throws:
TransportException
-
connect
Connect to the remote side- Parameters:
remoteAddress- The remote address to connect to- Throws:
IOException
-
disconnect
-
isConnected
boolean isConnected()Checks if the transport layer is currently connected.
-