Show / Hide Table of Contents

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 Source

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

DestinationPort

Declaration
public int DestinationPort
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Payload

Declaration
public byte[] Payload
Field Value
Type Description
System.Byte[]
| Improve this Doc View Source

SourcePort

Declaration
public int SourcePort
Field Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

GetBytes()

Declaration
public byte[] GetBytes()
Returns
Type Description
System.Byte[]

Extension Methods

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