Class KQueueSocketChannel

    • Constructor Detail

      • KQueueSocketChannel

        public KQueueSocketChannel()
      • KQueueSocketChannel

        @Deprecated
        public KQueueSocketChannel​(InternetProtocolFamily protocol)
        Deprecated.
        use KQueueDatagramChannel(SocketProtocolFamily)
      • KQueueSocketChannel

        public KQueueSocketChannel​(int fd)
      • KQueueSocketChannel

        KQueueSocketChannel​(Channel parent,
                            BsdSocket fd,
                            java.net.InetSocketAddress remoteAddress)
    • Method Detail

      • remoteAddress

        public java.net.InetSocketAddress remoteAddress()
        Description copied from interface: Channel
        Returns the remote address where this channel is connected to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.
        Specified by:
        remoteAddress in interface Channel
        Specified by:
        remoteAddress in interface SocketChannel
        Overrides:
        remoteAddress in class AbstractChannel
        Returns:
        the remote address of this channel. null if this channel is not connected. If this channel is not connected but it can receive messages from arbitrary remote addresses (e.g. DatagramChannel, use DefaultAddressedEnvelope.recipient() to determine the origination of the received message as this method will return null.
      • localAddress

        public java.net.InetSocketAddress localAddress()
        Description copied from interface: Channel
        Returns the local address where this channel is bound to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.
        Specified by:
        localAddress in interface Channel
        Specified by:
        localAddress in interface SocketChannel
        Overrides:
        localAddress in class AbstractChannel
        Returns:
        the local address of this channel. null if this channel is not bound.
      • doConnect0

        protected boolean doConnect0​(java.net.SocketAddress remoteAddress,
                                     java.net.SocketAddress localAddress)
                              throws java.lang.Exception
        Overrides:
        doConnect0 in class AbstractKQueueChannel
        Throws:
        java.lang.Exception