Package org.red5.io.sctp
Class SctpServerChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
org.red5.io.sctp.SctpServerChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,InterruptibleChannel
- Direct Known Subclasses:
SctpServerChanneOverUDP
Abstract SctpServerChannel class.
- Author:
- mondain
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSctpServerChannel(SelectorProvider provider) Constructor for SctpServerChannel. -
Method Summary
Modifier and TypeMethodDescriptionabstract SctpChannelaccept()accept.final SctpServerChannelbind(SocketAddress local) bind.abstract SctpServerChannelbind(SocketAddress local, int backlog) bind.abstract SctpServerChannelbindAddress(InetAddress address) bindAddress.abstract Set<SocketAddress> getAllLocalAddresses.static SctpServerChannelopen()open.abstract <T> SctpServerChannelsetOption(SctpSocketOption<T> name, T value) setOption.abstract Set<SctpSocketOption<?>> supportedOptions.abstract SctpServerChannelunbindAddress(InetAddress address) unbindAddress.intvalidOps()Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.SelectableChannel
registerMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Constructor Details
-
SctpServerChannel
Constructor for SctpServerChannel.
- Parameters:
provider- aSelectorProviderobject
-
-
Method Details
-
accept
public abstract SctpChannel accept() throws IOException, SctpException, InvalidKeyException, NoSuchAlgorithmExceptionaccept.
- Returns:
- a
SctpChannelobject - Throws:
IOException- if any.SctpException- if any.InvalidKeyException- if any.NoSuchAlgorithmException- if any.
-
bind
bind.
- Parameters:
local- aSocketAddressobjectbacklog- a int- Returns:
- a
SctpServerChannelobject - Throws:
IOException- if any.
-
bindAddress
bindAddress.
- Parameters:
address- aInetAddressobject- Returns:
- a
SctpServerChannelobject - Throws:
IOException- if any.
-
getAllLocalAddresses
getAllLocalAddresses.
- Returns:
- a
Setobject - Throws:
IOException- if any.
-
unbindAddress
unbindAddress.
- Parameters:
address- aInetAddressobject- Returns:
- a
SctpServerChannelobject - Throws:
IOException- if any.
-
setOption
public abstract <T> SctpServerChannel setOption(SctpSocketOption<T> name, T value) throws IOException setOption.
- Type Parameters:
T- a T class- Parameters:
name- aSctpSocketOptionobjectvalue- a T object- Returns:
- a
SctpServerChannelobject - Throws:
IOException- if any.
-
supportedOptions
supportedOptions.
- Returns:
- a
Setobject
-
open
public static SctpServerChannel open() throws IOException, InvalidKeyException, NoSuchAlgorithmExceptionopen.
- Returns:
- a
SctpServerChannelobject - Throws:
IOException- if any.InvalidKeyException- if any.NoSuchAlgorithmException- if any.
-
bind
bind.
- Parameters:
local- aSocketAddressobject- Returns:
- a
SctpServerChannelobject - Throws:
IOException- if any.
-
validOps
public int validOps()- Specified by:
validOpsin classSelectableChannel
-