Interface SocketAcceptor

    • Method Detail

      • getLocalAddress

        InetSocketAddress getLocalAddress()
        Description copied from interface: IoAcceptor
        Returns the local address which is bound currently. If more than one address are bound, only one of them will be returned, but it's not necessarily the firstly bound address.
        Specified by:
        getLocalAddress in interface IoAcceptor
        Returns:
        the local InetSocketAddress which is bound currently. If more than one address are bound, only one of them will be returned, but it's not necessarily the firstly bound address. This method overrides the IoAcceptor.getLocalAddress() method.
      • getBacklog

        int getBacklog()
        Returns:
        the size of the backlog.
      • setBacklog

        void setBacklog​(int backlog)
        Sets the size of the backlog. This can only be done when this class is not bound
        Parameters:
        backlog - The backlog's size