X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.hh;h=d1485984cffe316497da488b3dea81abdb6ff00c;hb=fd3a0e8ac95d1158e9ea661ddf9187b67c70169f;hp=8cff10857a46c82e42f7a77eea63618064f50500;hpb=1a02a61e1e1515dca27577013cc7300ea5133fd5;p=senf.git diff --git a/Packets/Packet.hh b/Packets/Packet.hh index 8cff108..d148598 100644 --- a/Packets/Packet.hh +++ b/Packets/Packet.hh @@ -269,7 +269,10 @@ namespace senf { OtherPacket. The new packet is added to the chain after \c this. \returns new packet instance sharing the same data and - placed after \c this packet in the chain. */ + placed after \c this packet in the chain. + \throws InvalidPacketChainException if no next + packet header is allowed (viz. nextPacketRange() of the the current + PacketType returns no_range() ) */ Packet parseNextAs(factory_t factory) const; ///< Interpret payload of \c this as \a factory type packet /**< parseNextAs() will throw away the packet chain after @@ -278,7 +281,10 @@ namespace senf { factory. The new packet is added to the chain after \c this. \returns new packet instance sharing the same data and - placed after \c this packet in the chain. */ + placed after \c this packet in the chain. + \throws InvalidPacketChainException if no next + packet header is allowed (viz. nextPacketRange() of the the current + PacketType returns no_range() ) */ template bool is() const; ///< Check, whether \c this packet is of the given type