Class SctpUdpTransport
Represents an SCTP transport that encapsulates SCTP packet in UDP.
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 SctpUdpTransport : SctpTransportConstructors
| Improve this Doc View SourceSctpUdpTransport(Int32, PortRange)
Creates a new UDP transport capable of encapsulating SCTP packets.
Declaration
public SctpUdpTransport(int udpEncapPort = 0, PortRange portRange = null)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | udpEncapPort | The port to bind to for the UDP encapsulation socket. | 
| PortRange | portRange | Optional. The portRange which should be used to get a listening port. | 
Fields
| Improve this Doc View SourceDEFAULT_UDP_MTU
Declaration
public const ushort DEFAULT_UDP_MTU = 1300Field Value
| Type | Description | 
|---|---|
| System.UInt16 | 
Methods
| Improve this Doc View SourceAssociate(IPEndPoint, UInt16, UInt16, UInt16, UInt16)
Requests a new association be created.
Declaration
public SctpAssociation Associate(IPEndPoint destination, ushort sourcePort, ushort destinationPort, ushort numberOutboundStreams = 65535, ushort numberInboundStreams = 65535)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Net.IPEndPoint | destination | The UDP endpoint to attempt to create the association with. | 
| System.UInt16 | sourcePort | The SCTP source port. | 
| System.UInt16 | destinationPort | The SCTP destination port. | 
| System.UInt16 | numberOutboundStreams | |
| System.UInt16 | numberInboundStreams | 
Returns
| Type | Description | 
|---|---|
| SctpAssociation | An SCTP association. | 
Send(String, Byte[], Int32, Int32)
Declaration
public override void Send(string associationID, byte[] buffer, int offset, int length)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | associationID | |
| System.Byte[] | buffer | |
| System.Int32 | offset | |
| System.Int32 | length |