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
ConstructorsModifierConstructorDescriptionprotected
SctpServerChannel
(SelectorProvider provider) Constructor for SctpServerChannel. -
Method Summary
Modifier and TypeMethodDescriptionabstract SctpChannel
accept()
accept.final SctpServerChannel
bind
(SocketAddress local) bind.abstract SctpServerChannel
bind
(SocketAddress local, int backlog) bind.abstract SctpServerChannel
bindAddress
(InetAddress address) bindAddress.abstract Set
<SocketAddress> getAllLocalAddresses.static SctpServerChannel
open()
open.abstract <T> SctpServerChannel
setOption
(SctpSocketOption<T> name, T value) setOption.abstract Set
<SctpSocketOption<?>> supportedOptions.abstract SctpServerChannel
unbindAddress
(InetAddress address) unbindAddress.int
validOps()
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register
Methods inherited from class java.nio.channels.SelectableChannel
register
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Constructor Details
-
SctpServerChannel
Constructor for SctpServerChannel.
- Parameters:
provider
- aSelectorProvider
object
-
-
Method Details
-
accept
public abstract SctpChannel accept() throws IOException, SctpException, InvalidKeyException, NoSuchAlgorithmExceptionaccept.
- Returns:
- a
SctpChannel
object - Throws:
IOException
- if any.SctpException
- if any.InvalidKeyException
- if any.NoSuchAlgorithmException
- if any.
-
bind
bind.
- Parameters:
local
- aSocketAddress
objectbacklog
- a int- Returns:
- a
SctpServerChannel
object - Throws:
IOException
- if any.
-
bindAddress
bindAddress.
- Parameters:
address
- aInetAddress
object- Returns:
- a
SctpServerChannel
object - Throws:
IOException
- if any.
-
getAllLocalAddresses
getAllLocalAddresses.
- Returns:
- a
Set
object - Throws:
IOException
- if any.
-
unbindAddress
unbindAddress.
- Parameters:
address
- aInetAddress
object- Returns:
- a
SctpServerChannel
object - 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
- aSctpSocketOption
objectvalue
- a T object- Returns:
- a
SctpServerChannel
object - Throws:
IOException
- if any.
-
supportedOptions
supportedOptions.
- Returns:
- a
Set
object
-
open
public static SctpServerChannel open() throws IOException, InvalidKeyException, NoSuchAlgorithmExceptionopen.
- Returns:
- a
SctpServerChannel
object - Throws:
IOException
- if any.InvalidKeyException
- if any.NoSuchAlgorithmException
- if any.
-
bind
bind.
- Parameters:
local
- aSocketAddress
object- Returns:
- a
SctpServerChannel
object - Throws:
IOException
- if any.
-
validOps
public int validOps()- Specified by:
validOps
in classSelectableChannel
-