Class KQueueSocketChannel

All Implemented Interfaces:
Channel, ChannelOutboundInvoker, DuplexChannel, SocketChannel, UnixChannel, AttributeMap, java.lang.Comparable<Channel>

public final class KQueueSocketChannel extends AbstractKQueueStreamChannel implements SocketChannel
  • Field Details

  • Constructor Details

    • KQueueSocketChannel

      public KQueueSocketChannel()
    • KQueueSocketChannel

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

      public KQueueSocketChannel(SocketProtocolFamily protocol)
    • KQueueSocketChannel

      public KQueueSocketChannel(int fd)
    • KQueueSocketChannel

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

    • 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.
    • config

      public KQueueSocketChannelConfig config()
      Description copied from interface: Channel
      Returns the configuration of this channel.
      Specified by:
      config in interface Channel
      Specified by:
      config in interface SocketChannel
      Specified by:
      config in class AbstractKQueueChannel
    • parent

      public ServerSocketChannel parent()
      Description copied from interface: Channel
      Returns the parent of this channel.
      Specified by:
      parent in interface Channel
      Specified by:
      parent in interface SocketChannel
      Overrides:
      parent in class AbstractChannel
      Returns:
      the parent channel. null if this channel does not have a parent channel.
    • 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