struct FinderParselet

FinderParselet is the base class for mini-parsers that handle the payload data of Finder messages. More...

Contains pure virtuals
Definition#include <finder-msg.hh>
Inherited byFinderAckParser, FinderAnswerParser, FinderAssociateParser, FinderByeParser, FinderHelloParser, FinderQuestionParser
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

FinderParselet is the base class for mini-parsers that handle the payload data of Finder messages. They parse the payload of the particular message type they understand and then call a user specified callback.

 FinderParselet (const string& name)

FinderParselet

Construct a payload parser.

Parameters:
namethe message type understood by the parser.

 ~FinderParselet ()

~FinderParselet

[virtual]

void  parse (uint32_t src, uint32_t seq, const string& b, string::const_iterator& bpos)
throw (BadFinderMessage)

parse

[const pure virtual]

Parse payload of message.

Parameters:
srcSource identifier taken from common message header.
seqSequence number taken from common message header.
bBuffer that contains data to be parsed.
bposposition that payload parsing should be commenced from. This value should be updated to point to the last character parsed.

const string  name ()

name

[const]

Returns: name of message type understood by parselet.

string _name

_name

[protected]


Generated by: pavlin on possum.icir.org on Wed Dec 11 16:50:42 2002, using kdoc 2.0a54+XORP.