Package com.sun.nio.sctp
Class SctpChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,InterruptibleChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Association
abstract SctpChannel
bind
(SocketAddress local) abstract SctpChannel
bindAddress
(InetAddress inetAddress) abstract boolean
connect
(SocketAddress remote) abstract boolean
abstract Set
<SocketAddress> abstract <T> T
getOption
(SctpSocketOption<T> name) abstract Set
<SocketAddress> static SctpChannel
open()
abstract <T> MessageInfo
receive
(ByteBuffer dst, T attachment, NotificationHandler<T> handler) abstract int
send
(ByteBuffer src, MessageInfo messageInfo) abstract <T> SctpChannel
setOption
(SctpSocketOption<T> name, T value) abstract Set
<SctpSocketOption<?>> abstract SctpChannel
unbindAddress
(InetAddress inetAddress) Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register
Methods inherited from class java.nio.channels.SelectableChannel
register, validOps
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Constructor Details
-
SctpChannel
-
-
Method Details
-
open
- Throws:
IOException
-
getOption
- Throws:
IOException
-
setOption
- Throws:
IOException
-
getAllLocalAddresses
- Throws:
IOException
-
getRemoteAddresses
- Throws:
IOException
-
association
- Throws:
IOException
-
bind
- Throws:
IOException
-
connect
- Throws:
IOException
-
finishConnect
- Throws:
IOException
-
bindAddress
- Throws:
IOException
-
unbindAddress
- Throws:
IOException
-
receive
public abstract <T> MessageInfo receive(ByteBuffer dst, T attachment, NotificationHandler<T> handler) throws IOException - Throws:
IOException
-
send
- Throws:
IOException
-
supportedOptions
-