Class SctpChannel

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, java.nio.channels.InterruptibleChannel

    public abstract class SctpChannel
    extends java.nio.channels.spi.AbstractSelectableChannel
    • Constructor Detail

      • SctpChannel

        protected SctpChannel​(java.nio.channels.spi.SelectorProvider provider)
    • Method Detail

      • open

        public static SctpChannel open()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getOption

        public abstract <T> T getOption​(SctpSocketOption<T> name)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setOption

        public abstract <T> SctpChannel setOption​(SctpSocketOption<T> name,
                                                  T value)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getAllLocalAddresses

        public abstract java.util.Set<java.net.SocketAddress> getAllLocalAddresses()
                                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getRemoteAddresses

        public abstract java.util.Set<java.net.SocketAddress> getRemoteAddresses()
                                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • association

        public abstract Association association()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • bind

        public abstract SctpChannel bind​(java.net.SocketAddress local)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • connect

        public abstract boolean connect​(java.net.SocketAddress remote)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • finishConnect

        public abstract boolean finishConnect()
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • bindAddress

        public abstract SctpChannel bindAddress​(java.net.InetAddress inetAddress)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • unbindAddress

        public abstract SctpChannel unbindAddress​(java.net.InetAddress inetAddress)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • receive

        public abstract <T> MessageInfo receive​(java.nio.ByteBuffer dst,
                                                T attachment,
                                                NotificationHandler<T> handler)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • send

        public abstract int send​(java.nio.ByteBuffer src,
                                 MessageInfo messageInfo)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • supportedOptions

        public abstract java.util.Set<SctpSocketOption<?>> supportedOptions()