Class OioSctpChannel

    • Constructor Detail

      • OioSctpChannel

        public OioSctpChannel()
        Deprecated.
        Create a new instance with an new SctpChannel.
      • OioSctpChannel

        public OioSctpChannel​(com.sun.nio.sctp.SctpChannel ch)
        Deprecated.
        Create a new instance from the given SctpChannel.
        Parameters:
        ch - the SctpChannel which is used by this instance
      • OioSctpChannel

        public OioSctpChannel​(Channel parent,
                              com.sun.nio.sctp.SctpChannel ch)
        Deprecated.
        Create a new instance from the given SctpChannel.
        Parameters:
        parent - the parent Channel which was used to create this instance. This can be null if the has no parent as it was created by your self.
        ch - the SctpChannel which is used by this instance
    • Method Detail

      • localAddress

        public java.net.InetSocketAddress localAddress()
        Deprecated.
        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 SctpChannel
        Overrides:
        localAddress in class AbstractChannel
        Returns:
        the local address of this channel. null if this channel is not bound.
      • remoteAddress

        public java.net.InetSocketAddress remoteAddress()
        Deprecated.
        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 SctpChannel
        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.
      • isOpen

        public boolean isOpen()
        Deprecated.
        Description copied from interface: Channel
        Returns true if the Channel is open and may get active later
        Specified by:
        isOpen in interface Channel
      • doReadMessages

        protected int doReadMessages​(java.util.List<java.lang.Object> msgs)
                              throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractOioMessageChannel
        Read messages into the given array and return the amount which was read.
        Specified by:
        doReadMessages in class AbstractOioMessageChannel
        Throws:
        java.lang.Exception
      • association

        public com.sun.nio.sctp.Association association()
        Deprecated.
        Description copied from interface: SctpChannel
        Returns the underlying SCTP association.
        Specified by:
        association in interface SctpChannel
      • isActive

        public boolean isActive()
        Deprecated.
        Description copied from interface: Channel
        Return true if the Channel is active and so connected.
        Specified by:
        isActive in interface Channel
      • localAddress0

        protected java.net.SocketAddress localAddress0()
        Deprecated.
        Description copied from class: AbstractChannel
        Returns the SocketAddress which is bound locally.
        Specified by:
        localAddress0 in class AbstractChannel
      • allLocalAddresses

        public java.util.Set<java.net.InetSocketAddress> allLocalAddresses()
        Deprecated.
        Description copied from interface: SctpChannel
        Return all local addresses of the SCTP channel. Please note that, it will return more than one address if this channel is using multi-homing
        Specified by:
        allLocalAddresses in interface SctpChannel
      • allRemoteAddresses

        public java.util.Set<java.net.InetSocketAddress> allRemoteAddresses()
        Deprecated.
        Description copied from interface: SctpChannel
        Return all remote addresses of the SCTP server channel. Please note that, it will return more than one address if the remote is using multi-homing.
        Specified by:
        allRemoteAddresses in interface SctpChannel
      • doBind

        protected void doBind​(java.net.SocketAddress localAddress)
                       throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractChannel
        Bind the Channel to the SocketAddress
        Specified by:
        doBind in class AbstractChannel
        Throws:
        java.lang.Exception
      • doConnect

        protected void doConnect​(java.net.SocketAddress remoteAddress,
                                 java.net.SocketAddress localAddress)
                          throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractOioChannel
        Connect to the remote peer using the given localAddress if one is specified or null otherwise.
        Specified by:
        doConnect in class AbstractOioChannel
        Throws:
        java.lang.Exception
      • doDisconnect

        protected void doDisconnect()
                             throws java.lang.Exception
        Deprecated.
        Description copied from class: AbstractChannel
        Disconnect this Channel from its remote peer
        Specified by:
        doDisconnect in class AbstractChannel
        Throws:
        java.lang.Exception
      • bindAddress

        public ChannelFuture bindAddress​(java.net.InetAddress localAddress)
        Deprecated.
        Description copied from interface: SctpChannel
        Bind a address to the already bound channel to enable multi-homing. The Channel bust be bound and yet to be connected.
        Specified by:
        bindAddress in interface SctpChannel
      • unbindAddress

        public ChannelFuture unbindAddress​(java.net.InetAddress localAddress)
        Deprecated.
        Description copied from interface: SctpChannel
        Unbind the address from channel's multi-homing address list. The address should be added already in multi-homing address list.
        Specified by:
        unbindAddress in interface SctpChannel