#include <senf/Packets/DefaultBundle/UDPPacket.hh>

Parser implementing the UDP header. The fields implemented are:

Definition at line 45 of file UDPPacket.hh.
Public Types |
|
| typedef senf::UInt16Parser | source_t |
| typedef senf::UInt16Parser | destination_t |
| typedef senf::UInt16Parser | length_t |
| typedef senf::UInt16Parser | checksum_t |
Public Member Functions |
|
| senf::UInt16Parser | source () const |
| senf::UInt16Parser | destination () const |
| senf::UInt16Parser | length () const |
| senf::UInt16Parser | checksum () const |
| boost::uint16_t | calcChecksum () const |
| calculate (pseudo-)header checksum |
|
| bool | validateChecksum () const |
| validate header checksum |
|
| typedef senf::UInt16Parser senf::UDPPacketParser:: | ||||
| checksum_t | ||||
Definition at line 52 of file UDPPacket.hh.
| typedef senf::UInt16Parser senf::UDPPacketParser:: | ||||
| destination_t | ||||
Definition at line 50 of file UDPPacket.hh.
| typedef senf::UInt16Parser senf::UDPPacketParser:: | ||||
| length_t | ||||
Definition at line 51 of file UDPPacket.hh.
| typedef senf::UInt16Parser senf::UDPPacketParser:: | ||||
| source_t | ||||
Definition at line 49 of file UDPPacket.hh.
| boost::uint16_t senf::UDPPacketParser:: | ||||
| calcChecksum | () | |||
calculate (pseudo-)header checksum
calculate and return the checksum of the (pseudo-)header
Definition at line 45 of file UDPPacket.cc.
| senf::UInt16Parser senf::UDPPacketParser:: | ||||
| checksum | () | |||
| senf::UInt16Parser senf::UDPPacketParser:: | ||||
| destination | () | |||
| senf::UInt16Parser senf::UDPPacketParser:: | ||||
| length | () | |||
| senf::UInt16Parser senf::UDPPacketParser:: | ||||
| source | () | |||
| bool senf::UDPPacketParser:: | ||||
| validateChecksum | () | |||
validate header checksum
return true if the checksum field is equal to the calculated checksum
Definition at line 59 of file UDPPacket.hh.