Package com.example.common.transport
Interface TransportListener
- All Known Implementing Classes:
TcpSocketTransportListener
public interface TransportListener
The TransportListener interface defines methods for managing a transport listener that accepts connections.
-
Method Details
-
accept
Accept a connection on the listener and return a TransportConnection object for communication.- Returns:
- a TransportConnection object for the accepted connection
- Throws:
IOException
- if an error occurs while accepting the connection
-
close
Close the transport listener and release any allocated resources.- Throws:
IOException
- if an error occurs while closing the listener
-