Class UDPPacket
0 7 8 15 16 23 24 31
+--------+--------+--------+--------+
| Source | Destination |
| Port | Port |
+--------+--------+--------+--------+
| | |
| Length | Checksum |
+--------+--------+--------+--------+
|
| data octets ...
+---------------- ...
Inheritance
System.Object
UDPPacket
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.Sys
Assembly: SIPSorcery.dll
Syntax
public class UDPPacket
Constructors
| Improve this Doc View SourceUDPPacket(Int32, Int32, Byte[])
Declaration
public UDPPacket(int sourcePort, int destinationPort, byte[] payload)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sourcePort | |
System.Int32 | destinationPort | |
System.Byte[] | payload |
Fields
| Improve this Doc View SourceDestinationPort
Declaration
public int DestinationPort
Field Value
Type | Description |
---|---|
System.Int32 |
Payload
Declaration
public byte[] Payload
Field Value
Type | Description |
---|---|
System.Byte[] |
SourcePort
Declaration
public int SourcePort
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetBytes()
Declaration
public byte[] GetBytes()
Returns
Type | Description |
---|---|
System.Byte[] |