Package org.red5.io.sctp
Class Association
- java.lang.Object
-
- org.red5.io.sctp.Association
-
- All Implemented Interfaces:
IAssociationControl
public class Association extends Object implements IAssociationControl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.red5.io.sctp.IAssociationControl
IAssociationControl.State
-
-
Field Summary
-
Fields inherited from interface org.red5.io.sctp.IAssociationControl
DEFAULT_ADVERTISE_RECEIVE_WINDOW_CREDIT, DEFAULT_NUMBER_OF_INBOUND_STREAM, DEFAULT_NUMBER_OF_OUTBOUND_STREAM, VALID_COOKIE_TIME
-
-
Constructor Summary
Constructors Constructor Description Association(Random random, InetSocketAddress sourceAddress)Association(Random random, InetSocketAddress sourceAddress, int initialTSN, int verificationTag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDestinationPort()intgetSourcePort()IAssociationControl.StategetState()intgetVerificationTag()intgetVerificationTagItself()voidsendPacket(SctpPacket packet)voidsetSource(DatagramSocket source)voidsetState(IAssociationControl.State state)booleansetUp(InetSocketAddress address)voidsetVerificationTagItself(int verificationTagItself)
-
-
-
Constructor Detail
-
Association
public Association(Random random, InetSocketAddress sourceAddress, int initialTSN, int verificationTag) throws SocketException
- Throws:
SocketException
-
Association
public Association(Random random, InetSocketAddress sourceAddress) throws SocketException
- Throws:
SocketException
-
-
Method Detail
-
setUp
public boolean setUp(InetSocketAddress address) throws IOException, SctpException, InvalidKeyException, NoSuchAlgorithmException
-
getState
public IAssociationControl.State getState()
- Specified by:
getStatein interfaceIAssociationControl
-
setSource
public void setSource(DatagramSocket source)
-
getVerificationTag
public int getVerificationTag()
- Specified by:
getVerificationTagin interfaceIAssociationControl
-
getVerificationTagItself
public int getVerificationTagItself()
-
setVerificationTagItself
public void setVerificationTagItself(int verificationTagItself)
-
setState
public void setState(IAssociationControl.State state)
- Specified by:
setStatein interfaceIAssociationControl
-
sendPacket
public void sendPacket(SctpPacket packet) throws IOException
- Specified by:
sendPacketin interfaceIAssociationControl- Throws:
IOException
-
getDestinationPort
public int getDestinationPort()
- Specified by:
getDestinationPortin interfaceIAssociationControl
-
getSourcePort
public int getSourcePort()
- Specified by:
getSourcePortin interfaceIAssociationControl
-
-