An SCTPServerChannel is created by invoking the
open method of this class. A newly-created SCTP server
channel is open but not yet bound. An attempt to invoke the
accept method of an unbound channel will cause the
java. to be thrown. An SCTP server
channel can be bound by invoking one of the
bind methods defined by this class.
Socket options are configured using the
setOption method. SCTP server socket
channels support the following options:
Additional (implementation specific) options may also be supported. The list of options supported is obtained by invoking the
Option Name Description SCTP_INIT_MAXSTREAMSThe maximum number of streams requested by the local endpoint during association initialization
supportedOptions method.
SCTP server channels are safe for use by multiple concurrent threads.
| Access | Constructor and Description |
|---|---|
| protected | SctpServerChannel(SelectorProvider
The selector provider for this channel provider)Initializes a new instance of this class. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract SctpChannel | Returns: The SCTP channel for the new association, ornull
if this channel is in non-blocking mode and no association is
available to be acceptedAccepts an association on this channel's socket. |
| public final SctpServerChannel | Returns: This channelThe local address to bind the socket, or local)null to
bind the socket to an automatically assigned socket addressBinds the channel's socket to a local address and configures the socket to listen for associations. |
| public abstract SctpServerChannel | Returns: This channelThe local address to bind the socket, or local, int null to
bind the socket to an automatically assigned socket addressThe maximum number of pending associations backlog)Binds the channel's socket to a local address and configures the socket to listen for associations. |
| public abstract SctpServerChannel | Returns: This channelThe address to add to the bound addresses for the socket address)Adds the given address to the bound addresses for the channel's socket. |
| public abstract Set | Returns: All the socket addresses that this channel's socket is bound to, or an emptySet if the channel's socket is not
boundReturns all of the socket addresses to which this channel's socket is bound. |
| public abstract < The type of the socket option value T> T | Returns: The value of the socket option. A value ofnull may be
a valid value for some socket options.The socket option name)Returns the value of a socket option. |
| public static SctpServerChannel | |
| public abstract < The type of the socket option value T> SctpServerChannel | Returns: This channelThe socket option name, T The value of the socket option. A value of value)null may be
a valid value for some socket options.Sets the value of a socket option. |
| public abstract Set | Returns: A set of the socket options supported by this channelReturns a set of the socket options supported by this channel. |
| public abstract SctpServerChannel | Returns: This channelThe address to remove from the bound addresses for the socket address)Removes the given address from the bound addresses for the channel's socket. |
| public final int | Returns: The valid-operation setImplements abstract java. Returns an operation set identifying this channel's supported operations. |
| SctpServerChannel | back to summary |
|---|---|
| protected SctpServerChannel(SelectorProvider provider) Initializes a new instance of this class.
| |
| accept | back to summary |
|---|---|
| public abstract SctpChannel accept() throws IOException Accepts an association on this channel's socket. If this channel is in non-blocking mode then this method will
immediately return The
| |
| bind | back to summary |
|---|---|
| public final SctpServerChannel bind(SocketAddress local) throws IOException Binds the channel's socket to a local address and configures the socket to listen for associations. This method works as if invoking it were equivalent to evaluating the expression: bind(local, 0);
| |
| bind | back to summary |
|---|---|
| public abstract SctpServerChannel bind(SocketAddress local, int backlog) throws IOException Binds the channel's socket to a local address and configures the socket to listen for associations. 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 associations
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 abstract SctpServerChannel bindAddress(InetAddress address) throws IOException Adds the given address to the bound addresses for the channel's socket. The given address must not be the New associations accepted after this method successfully completes will be associated with the given address.
| |
| getAllLocalAddresses | back to summary |
|---|---|
| public abstract Set Returns all of the socket addresses to which this channel's socket is bound.
| |
| getOption | back to summary |
|---|---|
| public abstract <T> T getOption(SctpSocketOption<T> name) throws IOException Returns the value of a socket option.
| |
| open | back to summary |
|---|---|
| public static SctpServerChannel open() throws IOException Opens an SCTP server channel. The new channel's socket is initially unbound; it must be bound
to a specific address via one of its socket's
| |
| setOption | back to summary |
|---|---|
| public abstract <T> SctpServerChannel setOption(SctpSocketOption<T> name, T value) throws IOException Sets the value of a socket option.
| |
| supportedOptions | back to summary |
|---|---|
| public abstract Set 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 abstract SctpServerChannel unbindAddress(InetAddress address) throws IOException Removes the given address from the bound addresses for the channel's socket. The given address must not be the New associations accepted after this method successfully completes will not be associated with the given address.
| |
| validOps | back to summary |
|---|---|
| public final int validOps() Implements abstract java. Returns an operation set identifying this channel's supported operations. SCTP server channels only support the accepting of new
associations, so this method returns
| |