_t
typedef which is available for
- all fields to provide the return value for our accessor member.
+ \c disable_checksum() and \c init_checksum() change the selected variant. This will
+ automatically change the \c checksumPresent() field accordingly.
The \c GREPacketParser is now simple and safe to use. The only responsibility of the user now is to
only access \a checksum() if the \a checksumPresent() field is set. Otherwise, the behavior is
undefined (in debug builds, the parser will terminate the application with an assert).
-
+
\subsection howto_newpacket_parser_add Providing additional functionality
We have now implemented parsing all the header fields. However, often packets would benefit from
@@ -311,9 +313,9 @@
\code
#include senf::PacketTypeBase | here you find a description of the members which need to be implemented to provide a 'packet type'. Most of these members will normally be provided by the mixin helper. |
\ref packetparser | This section describes the packet parser facility. |
\link packetparsermacros Packet parser macros\endlink | A complete list and documentation of all the packet parser macros. |
\ref parseint, \n \ref parsecollection | There are several lists of available reusable packet parsers. However, these lists are not complete as there are other protocol specific reusable parsers (without claiming to be exhaustive: senf::INet4AddressParser, |