| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | associations()
Implements abstract com. Returns the open associations on this channel's socket. |
| public SctpMultiChannel | bind(SocketAddress local, int backlog)
Implements abstract com. Binds the channel's socket to a local address and configures the socket to listen for connections. |
| public SctpMultiChannel | bindAddress(InetAddress address)
Implements abstract com. Adds the given address to the bound addresses for the channel's socket. |
| public SctpChannel | branch(Association association)
Implements abstract com. Branches off an association. |
| 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, Association association)
Implements abstract com. Returns the value of a socket option. |
| public Set | getRemoteAddresses(Association association)
Implements abstract com. Returns all of the remote addresses to which the given association on 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 <T> MessageInfo | receive(ByteBuffer buffer, T attachment, NotificationHandler<T> handler)
Implements abstract com. Receives a message and/or handles a notification via this channel. |
| public int | send(ByteBuffer buffer, MessageInfo messageInfo)
Implements abstract com. Sends a message via this channel. |
| public <T> SctpMultiChannel | setOption(SctpSocketOption<T> name, T value, Association association)
Implements abstract com. Sets the value of a socket option. |
| public SctpMultiChannel | shutdown(Association association)
Implements abstract com. Shutdown an association without closing the channel. |
| public Set | supportedOptions()
Implements abstract com. Returns a set of the socket options supported by this channel. |
| public SctpMultiChannel | unbindAddress(InetAddress address)
Implements abstract com. Removes the given address from the bound addresses for the channel's socket. |
| SctpMultiChannelImpl | back to summary |
|---|---|
| public SctpMultiChannelImpl(SelectorProvider provider) | |
| associations | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns the open associations on this channel's socket. Only associations whose The returned set of associations is a snapshot of the open associations at the time that this method is invoked.
| |
| bind | back to summary |
|---|---|
| public SctpMultiChannel bind(SocketAddress local, int backlog) throws IOException Implements abstract com. Doc from com. Binds the channel's socket to a local address and configures the socket to listen for connections. This method is used to establish a relationship between the socket
and the local address. 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 The backlog parameter is the maximum number of pending connections on
the socket. Its exact semantics are implementation specific. An implementation
may impose an implementation specific maximum length or may choose to ignore
the parameter. If the backlog parameter has the value
| |
| bindAddress | back to summary |
|---|---|
| public SctpMultiChannel 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 New associations setup after this method successfully completes will be associated with the given address. Adding addresses to existing associations 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.
| |
| branch | back to summary |
|---|---|
| public SctpChannel branch(Association association) throws IOException Implements abstract com. Doc from com. Branches off an association. An application can invoke this method to branch off an association
into a separate channel. The new bound and connected This is particularly useful when, for instance, the application wishes to have a number of sporadic message senders/receivers remain under the original SCTP multi channel but branch off those associations carrying high volume data traffic into their own separate SCTP channels.
| |
| 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, Association association) throws IOException Implements abstract com. Doc from com. Returns the value of a socket option. Note that some options are retrieved on the channel's socket,
therefore the
| |
| getRemoteAddresses | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns all of the remote addresses to which the given association on this 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
| |
| receive | back to summary |
|---|---|
| public <T> MessageInfo receive(ByteBuffer buffer, T attachment, NotificationHandler<T> handler) throws IOException Implements abstract com. Doc from com. Receives a message and/or handles a notification via this channel. 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 and an 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 buffer, MessageInfo messageInfo) throws IOException Implements abstract com. Doc from com. Sends a message via this channel. If this channel is unbound then this method will invoke If there is no association existing between this channel's socket
and the intended receiver, identified by the address in the given messageInfo, then one
will be automatically setup to the intended receiver. This is considered
to be Implicit Association Setup. Upon successful association setup, an
If this channel is in blocking mode, there is sufficient room in the
underlying output buffer, then the remaining bytes in the given byte
buffer are transmitted as a single message. Sending a message
is atomic unless explicit message completion If this channel is in non-blocking mode, there is sufficient room
in the underlying output buffer, and an implicit association setup is
required, then the remaining bytes in the given byte buffer are
transmitted as a single message, subject to The message is transferred from the byte buffer as if by a regular
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> SctpMultiChannel setOption(SctpSocketOption<T> name, T value, Association association) throws IOException Implements abstract com. Doc from com. Sets the value of a socket option. Note that some options are retrieved on the channel's socket,
therefore the
| |
| shutdown | back to summary |
|---|---|
| public SctpMultiChannel shutdown(Association association) throws IOException Implements abstract com. Doc from com. Shutdown an association without closing the channel.
| |
| 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 SctpMultiChannel 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 If this method is invoked on a channel that does
not have The initial address that the channel's socket is bound to using
New associations setup after this method successfully completes will not be associated with the given address. Removing addresses from existing associations 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.
| |