Class DHCPPacket
Represents a DHCP packet.
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)
Namespace: Cosmos.System.Network.IPv4.UDP.DHCP
Assembly: Cosmos.System2.dll
Syntax
public class DHCPPacket : UDPPacket
Constructors
| Improve this Doc View SourceDHCPPacket(Byte[])
Initializes a new instance of the DHCPPacket class.
Declaration
public DHCPPacket(byte[] rawData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | rawData | Raw data. |
Methods
| Improve this Doc View SourceDHCPHandler(Byte[])
Handles a single DHCP packet.
Declaration
public static void DHCPHandler(byte[] packetData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packetData | The packet data. |
Exceptions
Type | Condition |
---|---|
System.OverflowException | Thrown if UDP_Data array length is greater than Int32.MaxValue. |
System.IO.IOException | Thrown on IO error. |
InitializeFields()
Init DHCPPacket fields.
Declaration
protected override void InitializeFields()
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if RawData is invalid or null. |