프로퍼티 | 타입 | 설명 | |
---|---|---|---|
UdpHeaderLength | int | ||
ipv4PacketHeader | IPv4Header_old | ||
ipv6PacketHeader | Ipv6Header |
메소드 | 설명 | |
---|---|---|
Create ( byte udpData, int &bytesCopied ) : UdpHeader, |
|
|
GetProtocolPacketBytes ( byte payLoad ) : byte[] |
This method builds the byte array representation of the UDP header as it would appear on the wire. To do this it must build the IPv4 or IPv6 pseudo header in order to calculate the checksum on the packet. This requires knowledge of the IPv4 or IPv6 header so one of these must be set before a UDP packet can be set. The IPv4 pseudo header consists of: 4-byte source IP address 4-byte destination address 1-byte zero field 1-byte protocol field 2-byte UDP length 2-byte source port 2-byte destination port 2-byte UDP packet length 2-byte UDP checksum (zero) UDP payload (padded to the next 16-bit boundary) The IPv6 pseudo header consists of: 16-byte source address 16-byte destination address 4-byte payload length 3-byte zero pad 1-byte protocol value 2-byte source port 2-byte destination port 2-byte UDP length 2-byte UDP checksum (zero) UDP payload (padded to the next 16-bit boundary)
|
|
UdpHeader ( ) : System |
Simple constructor for the UDP header.
|
public static Create ( byte udpData, int &bytesCopied ) : UdpHeader, | ||
udpData | byte | |
bytesCopied | int | |
리턴 | UdpHeader, |
public GetProtocolPacketBytes ( byte payLoad ) : byte[] | ||
payLoad | byte | Payload that follows the UDP header |
리턴 | byte[] |