• Home
  • Cosmos Website
  • Articles
  • API Documentation
Show / Hide Table of Contents
  • Cosmos.Build.Tasks
    • CreateMbr
    • CreateSyslinuxConfig
    • ExtractMapFromElfFile
    • IL2CPU
    • Launch
    • Ld
    • MakeIso
    • Nasm
    • ReadNasmMapToDebugInfo
    • TheRingMaster
  • Cosmos.Common
    • BinaryHelper
    • BinaryHelper.BitPos
    • ByteToString
    • NumberHelper
    • StringHelper
  • Cosmos.Common.Extensions
    • ByteConverter
    • ToHexString
  • Cosmos.Core
    • ACPI
    • ACPI.RSDPtr
    • BaseIOGroups
    • Bootstrap
    • CosmosRuntimeType
    • CPU
    • GCImplementation
    • Global
    • INTs
    • INTs.EFlagsEnum
    • INTs.ExceptionInterruptDelegate
    • INTs.IRQContext
    • INTs.IRQDelegate
    • INTs.MMXContext
    • INTs.TSS
    • IOPort
    • IOPortBase
    • IOPortRead
    • IOPortWrite
    • ManagedMemoryBlock
    • MemoryBlock
    • MemoryBlock08
    • MemoryBlock16
    • MemoryBlock32
    • MemoryMap
    • MemoryOperations
    • Multiboot
    • Multiboot.Header
    • PIC
    • PIC.Cmd
    • RawMemoryMap
    • VBE
    • VBE.ControllerInfo
    • VBE.ModeInfo
  • Cosmos.Core.IOGroup
    • ATA
    • COM
    • IOGroup
    • Keyboard
    • Mouse
    • PCI
    • PCSpeaker
    • PIC
    • PIT
    • PS2Controller
    • RTC
    • TextScreen
    • VBEIOGroup
    • VGA
  • Cosmos.Core.IOGroup.Network
    • AMDPCNetIIIOGroup
  • Cosmos.Core.Memory
    • Heap
    • HeapLarge
    • HeapMedium
    • HeapSmall
    • RAT
    • RAT.PageType
  • Cosmos.Core.Memory.Old
    • Heap
  • Cosmos.Core.MemoryGroup
    • AHCI
  • Cosmos.Core_Asm
    • ArrayGetLengthAsm
    • ArrayImpl
    • ArrayInternalCopyAsm
    • BufferBlockCopyAsm
    • BufferImpl
    • CPUCanReadCPUIDAsm
    • CPUDisableINTsAsm
    • CPUEnableINTsAsm
    • CPUGetAmountOfRAMAsm
    • CPUGetEndOfKernelAsm
    • CPUHaltAsm
    • CPUImpl
    • CPUInitFloatAsm
    • CPUInitSSEAsm
    • CPUReadCPUIDAsm
    • CPUReadModelSpecificRegisterAsm
    • CPUReadTimestampCounterAsm
    • CPUUpdateIDTAsm
    • CPUZeroFillAsm
    • DelegateCtorAsm
    • DelegateGetMulticastInvokeAsm
    • DelegateImpl
    • DelegateInvokeAsm
    • IOPortImpl
    • MultibootAsm
    • MultibootImpl
    • MultibootImplAsm
    • RuntimeHelpersImpl
  • Cosmos.Core_Asm.MemoryOperations
    • MemoryOperationsCopy128BlocksAsm
    • MemoryOperationsCopy128BytesAsm
    • MemoryOperationsCopy16BytesAsm
    • MemoryOperationsCopy32BytesAsm
    • MemoryOperationsCopy64BytesAsm
    • MemoryOperationsFill16BlocksAsm
  • Cosmos.Core_Plugs
    • GCImplementionImpl
    • RuntimeFieldHandleImpl
  • Cosmos.Core_Plugs.MemoryOperations
    • MemoryOperationsImpl
  • Cosmos.Core_Plugs.System
    • ArrayImpl
    • BufferImpl
    • CharUnicodeInfoImpl
    • DelegateImpl
    • DelegateImplInherit
    • EnvironmentImpl
    • EventHandlerImpl
    • ExceptionImpl
    • GCImpl
    • InternalEnvironmentImpl
    • MulticastDelegateImpl
    • ObjectImpl
    • OutOfMemoryExceptionImpl
    • RuntimeType
    • RuntimeType_RuntimeTypeCache
    • RuntimeTypeHandleImpl
    • SRImpl
    • StringImpl
    • TypeImpl
  • Cosmos.Core_Plugs.System.Collections.Generic
    • ByteComparer
    • ByteEqualityComparer
    • CharComparer
    • CharEqualityComparer
    • ComparerHelpersImpl
    • GuidComparer
    • GuidEqualityComparer
    • Int16Comparer
    • Int16EqualityComparer
    • Int32Comparer
    • Int32EqualityComparer
    • Int64Comparer
    • Int64EqualityComparer
    • ObjectComparer
    • ObjectEqualityComparer
    • SByteComparer
    • SByteEqualityComparer
    • StringComparer
    • StringEqualityComparer
    • UInt16Comparer
    • UInt16EqualityComparer
    • UInt32Comparer
    • UInt32EqualityComparer
    • UInt64Comparer
    • UInt64EqualityComparer
  • Cosmos.Core_Plugs.System.Diagnostics
    • DebuggerImpl
    • StopwatchImpl
  • Cosmos.Core_Plugs.System.Globalization
    • CultureInfoImpl
    • NumberFormatInfoImpl
  • Cosmos.Core_Plugs.System.Resources
    • ResourceManagerImpl
  • Cosmos.Core_Plugs.System.Runtime.CompilerServices
    • RuntimeHelpersImpl
  • Cosmos.Core_Plugs.System.Runtime.InteropServices
    • MarshalImpl
    • SafeHandleImpl
  • Cosmos.Core_Plugs.System.Text
    • DecoderFallbackImpl
    • EncoderFallbackImpl
    • InternalDecoderBestFitFallbackBufferImpl
    • InternalEncoderBestFitFallbackImpl
  • Cosmos.Core_Plugs.System.Threading
    • InterlockedImpl
    • MonitorImpl
    • TaskImpl
    • ThreadImpl
  • Cosmos.Debug.Common
    • DictionaryHelper
    • PipeClient
    • PipeServer
  • Cosmos.Debug.DebugConnectors
    • Consts
    • CoreDump
    • DebugConnector
    • DebugConnector.Incoming
    • DebugConnector.Outgoing
    • DebugConnectorEdison
    • DebugConnectorPipeClient
    • DebugConnectorPipeServer
    • DebugConnectorSerial
    • DebugConnectorStreamWithoutTimeouts
    • DebugConnectorStreamWithTimeouts
    • DebugConnectorTCPServer
    • DebugConnectorTestPipeServer
    • Debugger2Windows
    • Ds2Vs
    • Pipes
    • Vs2Ds
    • Windows2Debugger
  • Cosmos.Debug.GDB
    • AsmFile
    • AsmLine
    • BreakpointUC
    • FormBreakpoints
    • FormCallStack
    • FormCallStack.CallStack
    • FormHistory
    • FormLog
    • FormMain
    • FormMain.GdbAsmLine
    • FormRegisters
    • FormRegisters.CPUReg
    • FormSettings
    • FormWatches
    • GDB
    • GDB.Response
    • Global
    • RegNames
    • Settings
    • SettingsDS
    • SettingsDS.BreakpointDataTable
    • SettingsDS.BreakpointRow
    • SettingsDS.BreakpointRowChangeEvent
    • SettingsDS.BreakpointRowChangeEventHandler
    • SettingsDS.GeneralDataTable
    • SettingsDS.GeneralRow
    • SettingsDS.GeneralRowChangeEvent
    • SettingsDS.GeneralRowChangeEventHandler
    • SettingsDS.WatchDataTable
    • SettingsDS.WatchRow
    • SettingsDS.WatchRowChangeEvent
    • SettingsDS.WatchRowChangeEventHandler
    • SettingsDS.WindowDataTable
    • SettingsDS.WindowRow
    • SettingsDS.WindowRowChangeEvent
    • SettingsDS.WindowRowChangeEventHandler
    • WatchUC
    • Windows
  • Cosmos.Debug.Hosts
    • Bochs
    • Host
    • HyperV
    • IntelEdison
    • Qemu
    • Slave
    • VMware
  • Cosmos.Debug.Kernel
    • Debugger
    • DebuggerFactory
  • Cosmos.Debug.Kernel.Plugs.Asm
    • DebugBreak
    • DebugDoSend
    • DebugDoSendComplexLongNumber
    • DebugDoSendComplexNumber
    • DebugDoSendLongNumber
    • DebugDoSendNumber
    • DebuggerAsm
    • DebugSendChannelCommand
    • DebugSendChannelCommandNoData
    • DebugSendMessageBox
    • DebugSendPtr
    • DebugTraceOff
    • DebugTraceOn
    • DoBochsBreak
    • DoRealHalt
  • Cosmos.Deploy.Pixie
    • App
    • DHCP
    • DhcpPacket
    • DhcpPacket.MsgType
    • DhcpPacket.OpType
    • MainWindow
    • TrivialFTP
    • TrivialFTP.OpType
  • Cosmos.Deploy.USB
    • App
    • MainWindow
  • Cosmos.HAL
    • Bootstrap
    • CardType
    • ClassID
    • DataReceivedHandler
    • DebugTextScreen
    • Device
    • DeviceID
    • Global
    • KeyboardBase
    • KeyboardBase.KeyPressedEventHandler
    • MouseBase
    • MouseBase.MouseChangedEventHandler
    • NetworkDevice
    • PCI
    • PCIBaseAddressBar
    • PCIDevice
    • PCIDevice.Config
    • PCIDevice.DeviceClass
    • PCIDevice.PCIBist
    • PCIDevice.PCICommand
    • PCIDevice.PCIHeaderType
    • PCIDevice.PCIInterruptPIN
    • PCIDeviceBridge
    • PCIDeviceCardbus
    • PCIDeviceNormal
    • PCSpeaker
    • PIT
    • PIT.PITTimer
    • PIT.PITTimer.dOnTrigger
    • Power
    • ProgramIF
    • PS2Controller
    • PS2Keyboard
    • PS2Mouse
    • RTC
    • SpeakerExtensions
    • SubclassID
    • TextScreen
    • TextScreenBase
    • TextScreenHelpers
    • VendorID
    • VGADriver
    • VGADriver.ColorDepth
    • VGADriver.ScreenSize
    • VGADriver.TextSize
  • Cosmos.HAL.BlockDevice
    • AHCI
    • Ata
    • Ata.BusPositionEnum
    • Ata.ControllerIdEnum
    • AtaPio
    • AtaPio.Cmd
    • AtaPio.Ident
    • AtaPio.SpecLevel
    • AtaPio.Status
    • BlockDevice
    • EBR
    • EBR.PartInfo
    • GPT
    • GPT.GPartInfo
    • IDE
    • MBR
    • MBR.PartInfo
    • Partition
  • Cosmos.HAL.BlockDevice.Ports
    • SATA
    • SATAPI
    • StoragePort
  • Cosmos.HAL.BlockDevice.Registers
    • AHCISignature
    • ATACommands
    • ATADeviceStatus
    • Base
    • Bases
    • CommandAndStatus
    • CurrentInterfaceSpeedStatus
    • DeviceDetectionStatus
    • FISRegisterD2H
    • FISRegisterH2D
    • FISSize
    • FISType
    • GenericRegisters
    • HBACommandHeader
    • HBACommandTable
    • HBAPRDTEntry
    • InterfacePowerManagementStatus
    • InterruptEnable
    • InterruptStatus
    • PortRegisters
    • PortType
  • Cosmos.HAL.Drivers
    • VBEDriver
  • Cosmos.HAL.Drivers.PCI.Audio
    • PCMStream
  • Cosmos.HAL.Drivers.PCI.Network
    • AMDPCNetII
  • Cosmos.HAL.Drivers.PCI.Video
    • VMWareSVGAII
    • VMWareSVGAII.FIFO
    • VMWareSVGAII.Register
  • Cosmos.HAL.Drivers.USB
    • USBHost
  • Cosmos.HAL.Network
    • MACAddress
    • NetworkInit
  • Cosmos.System
    • Console
    • ConsoleKeyEx
    • ConsoleKeyExExtensions
    • Durations
    • Global
    • Kernel
    • KeyboardManager
    • KeyEvent
    • KeyEvent.KeyEventType
    • KeyMapping
    • MathEx
    • MouseManager
    • MouseState
    • Notes
    • PCSExtensions
    • PCSpeaker
    • Power
    • ScanMapBase
  • Cosmos.System.ExtendedASCII
    • CosmosEncodingProvider
  • Cosmos.System.FileSystem
    • CosmosVFS
    • DiskManager
    • FatFileSystemFactory
    • FileSystem
    • FileSystemFactory
    • FileSystemType
  • Cosmos.System.FileSystem.FAT.Listing
    • FatDirectoryEntryAttributeConsts
    • FatDirectoryEntryMetadata
    • FatDirectoryEntryMetadata.LongFilenameEntryMetadata
  • Cosmos.System.FileSystem.Listing
    • DirectoryEntry
    • DirectoryEntryTypeEnum
  • Cosmos.System.FileSystem.VFS
    • VFSBase
    • VFSManager
  • Cosmos.System.Graphics
    • Bitmap
    • Canvas
    • ColorDepth
    • ColorOrder
    • FullScreenCanvas
    • Image
    • ImageFormat
    • Mode
    • Pen
    • Point
    • SVGAIICanvas
    • VBECanvas
    • VGACanvas
    • VGAScreen
  • Cosmos.System.Graphics.Fonts
    • Font
    • PCScreenFont
    • UnicodeMapping
  • Cosmos.System.Network
    • EthernetPacket
    • NetworkStack
  • Cosmos.System.Network.ARP
    • ARPPacket
  • Cosmos.System.Network.Config
    • DNSConfig
    • IPConfig
    • NetworkConfig
  • Cosmos.System.Network.IPv4
    • Address
    • EndPoint
    • ICMPClient
    • ICMPPacket
    • IPPacket
  • Cosmos.System.Network.IPv4.UDP
    • UdpClient
    • UDPPacket
  • Cosmos.System.Network.IPv4.UDP.DHCP
    • DHCPClient
    • DHCPOption
    • DHCPPacket
  • Cosmos.System.Network.IPv4.UDP.DNS
    • DNSAnswer
    • DnsClient
    • DNSPacket
    • DNSPacketAnswer
    • DNSPacketAsk
    • DNSQuery
    • ReplyCode
  • Cosmos.System.ScanMaps
    • DE_Standard
    • FR_Standard
    • TR_StandardQ
    • US_Standard
  • Cosmos.System_Plugs.System
    • ByteImpl
    • ConsoleImpl
    • ConvertImpl
    • DateTimeImpl
    • DecimalImpl
    • DoubleImpl
    • EnumImpl
    • GuidImpl
    • Int16Impl
    • Int32Impl
    • Int64Impl
    • IntPtrImpl
    • MathImpl
    • RandomImpl
    • SByteImpl
    • SingleImpl
    • TimeSpanImpl
    • UInt16Impl
    • UInt32Impl
    • UInt64Impl
    • UIntPtrImpl
    • ValueTypeImpl
  • Cosmos.System_Plugs.System.Globalization
    • CompareInfoImpl
    • EncodingTableImpl
  • Cosmos.System_Plugs.System.IO
    • CosmosFileSystem
    • CosmosFileSystemInfo
    • DirectoryImpl
    • DirectoryInfoImpl
    • DriveInfoImpl
    • FileImpl
    • FileInfoImpl
    • FileLoadExceptionImpl
    • FileNotFoundExceptionImpl
    • FileStreamImpl
    • PathImpl
    • PathInternalImpl
    • TextWriterImpl
  • Cosmos.System_Plugs.System.Runtime
    • RuntimeHelpersImpl
  • Cosmos.System_Plugs.System.Text
    • DecoderExceptionFallbackBufferImpl
    • EncodingImpl
  • Cosmos.System_Plugs.System.Threading
    • SpinWaitImpl
    • ThreadImpl
  • Cosmos.TestRunner
    • Assert
    • TestChannelCommandEnum
    • TestController
  • Cosmos.VS.DebugEngine
    • AD7Util
    • AsmSource
    • CmdIDList
  • Cosmos.VS.DebugEngine.AD7.Definitions
    • AD7_HRESULT
  • Cosmos.VS.DebugEngine.AD7.Impl
    • AD7BoundBreakpoint
    • AD7BreakpointResolution
    • AD7DocumentContext
    • AD7Engine
    • AD7Expression
    • AD7MemoryAddress
    • AD7Module
    • AD7PendingBreakpoint
    • AD7Port
    • AD7PortSupplier
    • AD7Process
    • AD7ProgramProvider
    • AD7StackFrame
    • AD7Thread
    • DebugLocalInfo
  • Cosmos.VS.DebugEngine.Commands
    • BaseDebugCommand
    • DebugCommandExecute
    • DebugCommandHandler
    • DebugExecCommand
    • DebugLaunchCommand
    • DebugLogCommand
  • Cosmos.VS.DebugEngine.Engine.Impl
    • BreakpointManager
    • EngineCallback
    • EngineUtils
    • Operation
    • WorkerThread
  • Cosmos.VS.DebugEngine.Utilities
    • Extensions
  • Cosmos.VS.ProjectSystem
    • IBootableProperties
  • Cosmos.VS.Windows
    • AsmCode
    • AsmComment
    • AsmLabel
    • AsmLine
    • AssemblyUC
    • ConsoleConsts
    • ConsoleTW
    • ConsoleUC
    • CosmosWindowsPackage
    • DataBytesUC
    • DebuggerChannelUC
    • DebuggerUC
    • Global
    • InternalTW
    • InternalUC
    • MemoryViewUC
    • RegistersControl
    • StackTW
    • StackUC
    • StateStorer
    • ToolWindowPane2
    • ToolWindowPaneChannel
  • NASM
    • Program
  • TheRingMaster
    • Program

Class UDPPacket

UDPPacket class.

Inheritance
System.Object
EthernetPacket
IPPacket
UDPPacket
DHCPPacket
DNSPacket
Inherited Members
IPPacket.ipHeaderLength
IPPacket.NextIPFragmentID
IPPacket.CalcOcCRC(UInt16, UInt16)
IPPacket.CalcOcCRC(Byte[], UInt16, Int32)
IPPacket.CalcIPCRC(UInt16)
EthernetPacket.srcMAC
EthernetPacket.destMAC
EthernetPacket.RawData
EthernetPacket.PrepareForSending()
Namespace: Cosmos.System.Network.IPv4.UDP
Assembly: Cosmos.System2.dll
Syntax
public class UDPPacket : IPPacket

Constructors

| Improve this Doc View Source

UDPPacket(Address, Address, UInt16, UInt16, Byte[])

Create new instance of the UDPPacket class.

Declaration
public UDPPacket(Address source, Address dest, ushort srcPort, ushort destPort, byte[] data)
Parameters
Type Name Description
Address source

Source address.

Address dest

Destination address.

System.UInt16 srcPort

Source port.

System.UInt16 destPort

Destination port.

System.Byte[] data

Data array.

| Improve this Doc View Source

UDPPacket(Address, Address, UInt16, UInt16, UInt16)

Declaration
public UDPPacket(Address source, Address dest, UInt16 srcport, UInt16 destport, UInt16 datalength)
Parameters
Type Name Description
Address source
Address dest
UInt16 srcport
UInt16 destport
UInt16 datalength
| Improve this Doc View Source

UDPPacket(Address, Address, UInt16, UInt16, UInt16, MACAddress)

Declaration
public UDPPacket(Address source, Address dest, UInt16 srcport, UInt16 destport, UInt16 datalength, MACAddress destmac)
Parameters
Type Name Description
Address source
Address dest
UInt16 srcport
UInt16 destport
UInt16 datalength
MACAddress destmac
| Improve this Doc View Source

UDPPacket(Byte[])

Create new instance of the UDPPacket class.

Declaration
public UDPPacket(byte[] rawData)
Parameters
Type Name Description
System.Byte[] rawData

Raw data.

Properties

| Improve this Doc View Source

DestinationPort

Get destination port.

Declaration
public ushort DestinationPort { get; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

SourcePort

Get source port.

Declaration
public ushort SourcePort { get; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

UDP_DataLength

Get UDP data lenght.

Declaration
public ushort UDP_DataLength { get; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

UDP_Length

Get UDP length.

Declaration
public ushort UDP_Length { get; }
Property Value
Type Description
System.UInt16

Methods

| Improve this Doc View Source

InitFields()

Init UDPPacket fields.

Declaration
protected override void InitFields()
Overrides
IPPacket.InitFields()
| Improve this Doc View Source

ToString()

To string.

Declaration
public override string ToString()
Returns
Type Description
System.String

string value.

Overrides
IPPacket.ToString()
  • Improve this Doc
  • View Source
In This Article
Back to top