Class SctpChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
com.sun.nio.sctp.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 Summary
ConstructorsModifierConstructorDescriptionprotectedSctpChannel(java.nio.channels.spi.SelectorProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionabstract Associationabstract SctpChannelbind(java.net.SocketAddress local) abstract SctpChannelbindAddress(java.net.InetAddress inetAddress) abstract booleanconnect(java.net.SocketAddress remote) abstract booleanabstract java.util.Set<java.net.SocketAddress> abstract <T> TgetOption(SctpSocketOption<T> name) abstract java.util.Set<java.net.SocketAddress> static SctpChannelopen()abstract <T> MessageInforeceive(java.nio.ByteBuffer dst, T attachment, NotificationHandler<T> handler) abstract intsend(java.nio.ByteBuffer src, MessageInfo messageInfo) abstract <T> SctpChannelsetOption(SctpSocketOption<T> name, T value) abstract java.util.Set<SctpSocketOption<?>> abstract SctpChannelunbindAddress(java.net.InetAddress inetAddress) Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.SelectableChannel
register, validOpsMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.nio.channels.Channel
isOpen
-
Constructor Details
-
SctpChannel
protected SctpChannel(java.nio.channels.spi.SelectorProvider provider)
-
-
Method Details
-
open
- Throws:
java.io.IOException
-
getOption
- 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
- Throws:
java.io.IOException
-
bind
- 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
-