Interface StreamConnectionFactory


public interface StreamConnectionFactory
A factory which generates new StreamConnections when a new connection is opened.
  • Method Summary

    Modifier and Type
    Method
    Description
    getNewConnection(InetAddress inetAddress, int port)
    Returns a new handler or null to have the connection close.
  • Method Details

    • getNewConnection

      @Nullable StreamConnection getNewConnection(InetAddress inetAddress, int port)
      Returns a new handler or null to have the connection close.
      Parameters:
      inetAddress - The client's (IP) address
      port - The remote port on the client side