Class AbstractNetworkChannelEndpoint<S extends Channel,​U extends NetworkChannel>

    • Constructor Detail

      • AbstractNetworkChannelEndpoint

        public AbstractNetworkChannelEndpoint()
    • Method Detail

      • getServerSocket

        protected abstract NetworkChannel getServerSocket()
      • getLocalAddress

        protected final InetSocketAddress getLocalAddress()
                                                   throws IOException
        Description copied from class: AbstractEndpoint
        Obtain the network address the server socket is bound to. This primarily exists to enable the correct address to be used when unlocking the server socket since it removes the guess-work involved if no address is specifically set.
        Specified by:
        getLocalAddress in class AbstractEndpoint<S extends Channel,​U extends NetworkChannel>
        Returns:
        The network address that the server socket is listening on or null if the server socket is not currently bound.
        Throws:
        IOException - If there is a problem determining the currently bound socket