Interface TransportListener

All Known Implementing Classes:
TcpSocketTransportListener

public interface TransportListener
The TransportListener interface defines methods for managing a transport listener that accepts connections.
  • Method Summary

    Modifier and Type
    Method
    Description
    Accept a connection on the listener and return a TransportConnection object for communication.
    void
    Close the transport listener and release any allocated resources.
  • 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

      void close() throws IOException
      Close the transport listener and release any allocated resources.
      Throws:
      IOException - if an error occurs while closing the listener