Show / Hide Table of Contents

Class SctpDataSender

Inheritance
System.Object
SctpDataSender
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class SctpDataSender

Constructors

| Improve this Doc View Source

SctpDataSender(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 Source

BURST_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
| Improve this Doc View Source

CONGESTION_WINDOW_FACTOR

Declaration
public const uint CONGESTION_WINDOW_FACTOR = 4380U
Field Value
Type Description
System.UInt32
| Improve this Doc View Source

DEFAULT_SCTP_MTU

Declaration
public const ushort DEFAULT_SCTP_MTU = 1300
Field Value
Type Description
System.UInt16
| Improve this Doc View Source

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
| Improve this Doc View Source

RTO_INITIAL_SECONDS

Retransmission timeout initial value.

Declaration
public const int RTO_INITIAL_SECONDS = 3
Field Value
Type Description
System.Int32
| Improve this Doc View Source

RTO_MAX_SECONDS

The maximum value for the Retransmission timeout.

Declaration
public const int RTO_MAX_SECONDS = 60
Field Value
Type Description
System.Int32
| Improve this Doc View Source

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 Source

BufferedAmount

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
| Improve this Doc View Source

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 Source

Close()

Stops the sending thread.

Declaration
public void Close()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

SetReceiverWindow(UInt32)

Declaration
public void SetReceiverWindow(uint remoteARwnd)
Parameters
Type Name Description
System.UInt32 remoteARwnd
| Improve this Doc View Source

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()

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX