Class SctpDataSender
Inheritance
Inherited Members
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class SctpDataSender
Constructors
| Improve this Doc View SourceSctpDataSender(String, Action<SctpDataChunk>, UInt16, UInt32, UInt32)
Declaration
public SctpDataSender(string associationID, Action<SctpDataChunk> sendDataChunk, ushort defaultMTU, uint initialTSN, uint remoteARwnd)
Parameters
Type | Name | Description |
---|---|---|
System.String | associationID | |
System.Action<SctpDataChunk> | sendDataChunk | |
System.UInt16 | defaultMTU | |
System.UInt32 | initialTSN | |
System.UInt32 | remoteARwnd |
Fields
| Improve this Doc View SourceBURST_PERIOD_MILLISECONDS
Milliseconds to wait between bursts if no SACK chunks are received in the interim. Eventually if no SACK chunks are received the congestion or receiver windows will reach zero and enforce a longer period.
Declaration
public const int BURST_PERIOD_MILLISECONDS = 50
Field Value
Type | Description |
---|---|
System.Int32 |
CONGESTION_WINDOW_FACTOR
Declaration
public const uint CONGESTION_WINDOW_FACTOR = 4380U
Field Value
Type | Description |
---|---|
System.UInt32 |
DEFAULT_SCTP_MTU
Declaration
public const ushort DEFAULT_SCTP_MTU = 1300
Field Value
Type | Description |
---|---|
System.UInt16 |
MAX_BURST
Used to limit the number of packets that are sent at any one time, i.e. when the transmit timer fires do not send more than this many packets.
Declaration
public const int MAX_BURST = 4
Field Value
Type | Description |
---|---|
System.Int32 |
RTO_INITIAL_SECONDS
Retransmission timeout initial value.
Declaration
public const int RTO_INITIAL_SECONDS = 3
Field Value
Type | Description |
---|---|
System.Int32 |
RTO_MAX_SECONDS
The maximum value for the Retransmission timeout.
Declaration
public const int RTO_MAX_SECONDS = 60
Field Value
Type | Description |
---|---|
System.Int32 |
RTO_MIN_SECONDS
The minimum value for the Retransmission timeout.
Declaration
public const int RTO_MIN_SECONDS = 1
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceBufferedAmount
The total size (in bytes) of queued user data that will be sent to the peer.
Declaration
public ulong BufferedAmount { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
TSN
The Transaction Sequence Number (TSN) that will be used in the next DATA chunk sent.
Declaration
public uint TSN { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
| Improve this Doc View SourceClose()
Stops the sending thread.
Declaration
public void Close()
GotSack(SctpSackChunk)
Handler for SACK chunks received from the remote peer.
Declaration
public void GotSack(SctpSackChunk sack)
Parameters
Type | Name | Description |
---|---|---|
SctpSackChunk | sack | The SACK chunk from the remote peer. |
SendData(UInt16, UInt32, Byte[])
Sends a DATA chunk to the remote peer.
Declaration
public void SendData(ushort streamID, uint ppid, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | streamID | The stream ID to sent the data on. |
System.UInt32 | ppid | The payload protocol ID for the data. |
System.Byte[] | data | The byte data to send. |
SetReceiverWindow(UInt32)
Declaration
public void SetReceiverWindow(uint remoteARwnd)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | remoteARwnd |
StartSending()
Start the sending thread to process the new DATA chunks from the application and any retransmits or timed out chunks.
Declaration
public void StartSending()