UdpHeader
Namespace inet
UdpHeader
classRepresents an Udp header, to be used with the ~Udp module.
Extends
| Name | Type | Description |
|---|---|---|
| TransportHeaderBase | (unknown -- not in documented files) |
Fields
| Name | Type | Description |
|---|---|---|
| srcPort | unsigned short | |
| destPort | unsigned short | |
| chunkLength | ||
| totalLengthField | B |
UDP header + payload in bytes |
| checksum | uint16_t | |
| checksumMode | ChecksumMode |
Source code
// // Represents an Udp header, to be used with the ~Udp module. // class UdpHeader extends TransportHeaderBase { unsigned short srcPort; unsigned short destPort; chunkLength = UDP_HEADER_LENGTH; B totalLengthField = B(-1); // UDP header + payload in bytes uint16_t checksum @toString(utils::hex($)) @fromString(utils::uhex($)) = 0; ChecksumMode checksumMode = CHECKSUM_MODE_UNDEFINED; }File: src/inet/transportlayer/udp/UdpHeader.msg