Package org.red5.io.sctp
Class SctpServerChanneOverUDP
- java.lang.Object
-
- java.nio.channels.spi.AbstractInterruptibleChannel
-
- java.nio.channels.SelectableChannel
-
- java.nio.channels.spi.AbstractSelectableChannel
-
- org.red5.io.sctp.SctpServerChannel
-
- org.red5.io.sctp.SctpServerChanneOverUDP
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,InterruptibleChannel,IServerChannelControl
public class SctpServerChanneOverUDP extends SctpServerChannel implements IServerChannelControl
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSctpServerChanneOverUDP(SelectorProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SctpChannelaccept()booleanaddPendingChannel(InetSocketAddress address, int initialTSN, int verificationTag)SctpServerChannelbind(SocketAddress local, int backlog)SctpServerChannelbindAddress(InetAddress address)Set<SocketAddress>getAllLocalAddresses()MacgetMac()IAssociationControlgetPendingChannel(InetSocketAddress address)intgetPort()RandomgetRandom()protected voidimplCloseSelectableChannel()protected voidimplConfigureBlocking(boolean block)voidremovePendingChannel(InetSocketAddress address)voidsend(SctpPacket packet, InetSocketAddress address)<T> SctpServerChannelsetOption(SctpSocketOption<T> name, T value)Set<SctpSocketOption<?>>supportedOptions()SctpServerChannelunbindAddress(InetAddress address)-
Methods inherited from class org.red5.io.sctp.SctpServerChannel
bind, open, validOps
-
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, 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 Detail
-
SctpServerChanneOverUDP
protected SctpServerChanneOverUDP(SelectorProvider provider) throws NoSuchAlgorithmException, InvalidKeyException
-
-
Method Detail
-
accept
public SctpChannel accept() throws IOException, SctpException, InvalidKeyException, NoSuchAlgorithmException
- Specified by:
acceptin classSctpServerChannel- Throws:
IOExceptionSctpExceptionInvalidKeyExceptionNoSuchAlgorithmException
-
bind
public SctpServerChannel bind(SocketAddress local, int backlog) throws IOException
- Specified by:
bindin classSctpServerChannel- Throws:
IOException
-
getMac
public Mac getMac()
- Specified by:
getMacin interfaceIServerChannelControl
-
addPendingChannel
public boolean addPendingChannel(InetSocketAddress address, int initialTSN, int verificationTag) throws SocketException
- Specified by:
addPendingChannelin interfaceIServerChannelControl- Throws:
SocketException
-
getPendingChannel
public IAssociationControl getPendingChannel(InetSocketAddress address)
- Specified by:
getPendingChannelin interfaceIServerChannelControl
-
getPort
public int getPort()
- Specified by:
getPortin interfaceIServerChannelControl
-
send
public void send(SctpPacket packet, InetSocketAddress address) throws IOException
- Specified by:
sendin interfaceIServerChannelControl- Throws:
IOException
-
getRandom
public Random getRandom()
- Specified by:
getRandomin interfaceIServerChannelControl
-
removePendingChannel
public void removePendingChannel(InetSocketAddress address)
- Specified by:
removePendingChannelin interfaceIServerChannelControl
-
bindAddress
public SctpServerChannel bindAddress(InetAddress address) throws IOException
- Specified by:
bindAddressin classSctpServerChannel- Throws:
IOException
-
getAllLocalAddresses
public Set<SocketAddress> getAllLocalAddresses() throws IOException
- Specified by:
getAllLocalAddressesin classSctpServerChannel- Throws:
IOException
-
implCloseSelectableChannel
protected void implCloseSelectableChannel() throws IOException- Specified by:
implCloseSelectableChannelin classAbstractSelectableChannel- Throws:
IOException
-
implConfigureBlocking
protected void implConfigureBlocking(boolean block) throws IOException- Specified by:
implConfigureBlockingin classAbstractSelectableChannel- Throws:
IOException
-
unbindAddress
public SctpServerChannel unbindAddress(InetAddress address) throws IOException
- Specified by:
unbindAddressin classSctpServerChannel- Throws:
IOException
-
setOption
public <T> SctpServerChannel setOption(SctpSocketOption<T> name, T value) throws IOException
- Specified by:
setOptionin classSctpServerChannel- Throws:
IOException
-
supportedOptions
public Set<SctpSocketOption<?>> supportedOptions()
- Specified by:
supportedOptionsin classSctpServerChannel
-
-