Class DHCPPacket
DHCPPacket class.
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[])
Create 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[])
DHCP handler.
Declaration
public static void DHCPHandler(byte[] packetData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | packetData | Packet data. |
Exceptions
Type | Condition |
---|---|
System.OverflowException | Thrown if UDP_Data array length is greater than Int32.MaxValue. |
InitFields()
Init DHCPPacket fields.
Declaration
protected override void InitFields()
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if RawData is invalid or null. |