Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public SctpChannel | accept()
Implements abstract com. |
public SctpServerChannel | bind(SocketAddress
The 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)Implements abstract com. |
public SctpServerChannel | bindAddress(InetAddress
The address to add to the bound addresses for the socket address)Implements abstract com. |
public Set | getAllLocalAddresses()
Implements abstract com. |
public <T> T | getOption(SctpSocketOption<T>
The socket option name)Implements abstract com. |
public void | implCloseSelectableChannel()
Implements abstract java. |
protected void | implConfigureBlocking(boolean
If block)true then this channel will be placed in
blocking mode; if false then it will be placed
non-blocking modeImplements abstract java. |
public <T> SctpServerChannel | setOption(SctpSocketOption<T>
The socket option name, T The value of the socket option. A value of value)null may be
a valid value for some socket options.Implements abstract com. |
public Set | supportedOptions()
Implements abstract com. |
public SctpServerChannel | unbindAddress(InetAddress
The address to remove from the bound addresses for the socket address)Implements abstract com. |
SctpServerChannelImpl | back to summary |
---|---|
public SctpServerChannelImpl(SelectorProvider provider) |
accept | back to summary |
---|---|
public SctpChannel accept() throws IOException Implements abstract com. Doc from com. Accepts an association on this channel's socket. If this channel is in non-blocking mode then this method will
immediately return The If a security manager has been installed then for each new
association this method verifies that the address and port number of the
assocaitions's remote peer are permitted by the security manager's
|
bind | back to summary |
---|---|
public SctpServerChannel 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 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 SctpServerChannel 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 accepted after this method successfully completes will be associated with the given address.
|
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.
|
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
|
setOption | back to summary |
---|---|
public <T> SctpServerChannel setOption(SctpSocketOption<T> name, T value) throws IOException Implements abstract com. Doc from com. Sets the value of a socket option.
|
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 SctpServerChannel 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 New associations accepted after this method successfully completes will not be associated with the given address.
|