Represents an UDP packet, to be used with the UDP module.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
srcPort | unsigned short | |
destPort | unsigned short | |
byteLength | ||
totalLengthField | int | -1 means: getTotalLengthField() uses getByteLength() |
// // Represents an UDP packet, to be used with the ~UDP module. // packet UDPPacket { @customize(true); unsigned short srcPort; unsigned short destPort; byteLength = UDP_HEADER_BYTES; int totalLengthField = -1; // -1 means: getTotalLengthField() uses getByteLength() }