| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Association | association()
Implements abstract com. Returns the association on this channel's socket. |
| public SctpChannel | bind(SocketAddress local)
Implements abstract com. Binds the channel's socket to a local address. |
| public SctpChannel | bindAddress(InetAddress address)
Implements abstract com. Adds the given address to the bound addresses for the channel's socket. |
| public boolean | connect(SocketAddress remote)
Implements abstract com. Connects this channel's socket. |
| public boolean | connect(SocketAddress remote, int maxOutStreams, int maxInStreams)
Implements abstract com. Connects this channel's socket. |
| public boolean | finishConnect()
Implements abstract com. Finishes the process of connecting an SCTP channel. |
| public Set | getAllLocalAddresses()
Implements abstract com. Returns all of the socket addresses to which this channel's socket is bound. |
| public <T> T | getOption(SctpSocketOption<T> name)
Implements abstract com. Returns the value of a socket option. |
| public Set | getRemoteAddresses()
Implements abstract com. Returns all of the remote addresses to which this channel's socket is connected. |
| public void | implCloseSelectableChannel()
Implements abstract java. Closes this selectable channel. |
| protected void | implConfigureBlocking(boolean block)
Implements abstract java. Adjusts this channel's blocking mode. |
| public boolean | isConnectionPending()
Implements abstract com. Tells whether or not a connection operation is in progress on this channel. |
| public <T> MessageInfo | receive(ByteBuffer dst, T attachment, NotificationHandler<T> handler)
Implements abstract com. Receives a message into the given buffer and/or handles a notification. |
| public int | send(ByteBuffer src, MessageInfo messageInfo)
Implements abstract com. Sends a message via this channel. |
| public <T> SctpChannel | setOption(SctpSocketOption<T> name, T value)
Implements abstract com. Sets the value of a socket option. |
| public SctpChannel | shutdown()
Implements abstract com. Shutdown a connection without closing the channel. |
| public Set | supportedOptions()
Implements abstract com. Returns a set of the socket options supported by this channel. |
| public SctpChannel | unbindAddress(InetAddress address)
Implements abstract com. Removes the given address from the bound addresses for the channel's socket. |
| SctpChannelImpl | back to summary |
|---|---|
| public SctpChannelImpl(SelectorProvider provider) | |
| association | back to summary |
|---|---|
| public Association association() Implements abstract com. Doc from com. Returns the association on this channel's socket.
| |
| bind | back to summary |
|---|---|
| public SctpChannel bind(SocketAddress local) throws IOException Implements abstract com. Doc from com. Binds the channel's socket to a local address. This method is used to establish a relationship between the socket
and the local addresses. Once a relationship is established then
the socket remains bound until the channel is closed. This relationship
may not necesssarily be with the address Once the channel's socket has been successfully bound to a specific
address, that is not automatically assigned, more addresses
may be bound to it using
| |
| bindAddress | back to summary |
|---|---|
| public SctpChannel bindAddress(InetAddress address) throws IOException Implements abstract com. Doc from com. Adds the given address to the bound addresses for the channel's socket. The given address must not be the Adding addresses to a connected association is optional functionality. If the endpoint supports dynamic address reconfiguration then it may send the appropriate message to the peer to change the peers address lists.
| |
| connect | back to summary |
|---|---|
| public boolean connect(SocketAddress remote) throws IOException Implements abstract com. Doc from com. Connects this channel's socket. If this channel is in non-blocking mode then an invocation of this
method initiates a non-blocking connection operation. If the connection
is established immediately, as can happen with a local connection, then
this method returns If this channel is in blocking mode then an invocation of this method will block until the connection is established or an I/O error occurs. This method may be invoked at any time. If a
| |
| connect | back to summary |
|---|---|
| public boolean connect(SocketAddress remote, int maxOutStreams, int maxInStreams) throws IOException Implements abstract com. Doc from com. Connects this channel's socket. This is a convience method and is equivalent to evaluating the following expression: setOption(SctpStandardSocketOptions.SCTP_INIT_MAXSTREAMS, SctpStandardSocketOption.InitMaxStreams.create(maxInStreams, maxOutStreams)) .connect(remote); The
| |
| finishConnect | back to summary |
|---|---|
| public boolean finishConnect() throws IOException Implements abstract com. Doc from com. Finishes the process of connecting an SCTP channel. A non-blocking connection operation is initiated by placing a socket
channel in non-blocking mode and then invoking one of its If this channel is already connected then this method will not block
and will immediately return This method may be invoked at any time. If a
| |
| getAllLocalAddresses | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns all of the socket addresses to which this channel's socket is bound.
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(SctpSocketOption<T> name) throws IOException Implements abstract com. Doc from com. Returns the value of a socket option.
| |
| getRemoteAddresses | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns all of the remote addresses to which this channel's socket is connected. If the channel is connected to a remote peer that is bound to multiple addresses then it is these addresses that the channel's socket is connected.
| |
| implCloseSelectableChannel | back to summary |
|---|---|
| public void implCloseSelectableChannel() throws IOException Implements abstract java. Doc from java. Closes this selectable channel. This method is invoked by the An implementation of this method must arrange for any other thread that is blocked in an I/O operation upon this channel to return immediately, either by throwing an exception or by returning normally.
| |
| implConfigureBlocking | back to summary |
|---|---|
| protected void implConfigureBlocking(boolean block) throws IOException Implements abstract java. Doc from java. Adjusts this channel's blocking mode. This method is invoked by the
| |
| isConnectionPending | back to summary |
|---|---|
| public boolean isConnectionPending() Implements abstract com. Doc from com. Tells whether or not a connection operation is in progress on this channel.
| |
| receive | back to summary |
|---|---|
| public <T> MessageInfo receive(ByteBuffer dst, T attachment, NotificationHandler<T> handler) throws IOException Implements abstract com. Doc from com. Receives a message into the given buffer and/or handles a notification. If a message or notification is immediately available, or if this
channel is in blocking mode and one eventually becomes available, then
the message or notification is returned or handled, respectively. If this
channel is in non-blocking mode and a message or notification is not
immediately available then this method immediately returns If this method receives a message it is copied into the given byte
buffer. The message is transferred into the given byte buffer starting at
its current position and the buffers position is incremented by the
number of bytes read. If there are fewer bytes remaining in the buffer
than are required to hold the message, or the underlying input buffer
does not contain the complete message, then an invocation of If this method receives a notification then the appropriate method of
the given handler, if there is one, is invoked. If the handler returns
This method may be invoked at any time. If another thread has
already initiated a receive operation upon this channel, then an
invocation of this method will block until the first operation is
complete. The given handler is invoked without holding any locks used
to enforce the above synchronization policy, that way handlers
will not stall other threads from receiving. A handler should not invoke
the
| |
| send | back to summary |
|---|---|
| public int send(ByteBuffer src, MessageInfo messageInfo) throws IOException Implements abstract com. Doc from com. Sends a message via this channel. If this channel is in non-blocking mode and there is sufficient room
in the underlying output buffer, or if this channel is in blocking mode
and sufficient room becomes available, then the remaining bytes in the
given byte buffer are transmitted as a single message. Sending a message
is atomic unless explicit message completion The message is transferred from the byte buffer as if by a regular
The bytes will be written to the stream number that is specified by
This method may be invoked at any time. If another thread has already initiated a send operation upon this channel, then an invocation of this method will block until the first operation is complete.
| |
| setOption | back to summary |
|---|---|
| public <T> SctpChannel setOption(SctpSocketOption<T> name, T value) throws IOException Implements abstract com. Doc from com. Sets the value of a socket option.
| |
| shutdown | back to summary |
|---|---|
| public SctpChannel shutdown() throws IOException Implements abstract com. Doc from com. Shutdown a connection without closing the channel. Sends a shutdown command to the remote peer, effectively preventing
any new data from being written to the socket by either peer. Further
sends will throw
| |
| supportedOptions | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns a set of the socket options supported by this channel. This method will continue to return the set of options even after the channel has been closed.
| |
| unbindAddress | back to summary |
|---|---|
| public SctpChannel unbindAddress(InetAddress address) throws IOException Implements abstract com. Doc from com. Removes the given address from the bound addresses for the channel's socket. The given address must not be the Removing addresses from a connected association is optional functionality. If the endpoint supports dynamic address reconfiguration then it may send the appropriate message to the peer to change the peers address lists.
| |