class PacketDecoder

Packet byte streams are decoded through this class. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

Packet byte streams are decoded through this class.

 ~PacketDecoder ()

~PacketDecoder

void  register_decoder (Packet *packet)

register_decoder

Register the packet/decode routines

Parameters:

packetdecoder
void  register_decoder (Packet *packet, OspfTypes::Version version, OspfTypes::Type type)

register_decoder

Register the packet/decode routines

Parameters:

packetdecoder
versionOSPF version of the decoder
typeof decoder
Packetdecode (uint8_t *ptr, size_t len)
throw(BadPacket)

decode

Decode byte stream.

Parameters:

ptrto data packet
lengthof data packet

Returns: a packet structure, which must be free'd


Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:38 2006, using kdoc $.