Class SocketAddressCallback

    • Constructor Detail

      • SocketAddressCallback

        public SocketAddressCallback​(SocketAddress address,
                                     SocketAddressCallback.Kind kind)
        Construct a new instance.
        Parameters:
        address - the endpoint socket address
        kind - the disposition of the endpoint
      • SocketAddressCallback

        public SocketAddressCallback​(SocketAddress address)
        Construct a new instance. The disposition is assumed to be SocketAddressCallback.Kind.PEER.
        Parameters:
        address - the endpoint socket address
    • Method Detail

      • getAddress

        public SocketAddress getAddress()
        Get the endpoint socket address.
        Returns:
        the endpoint socket address