|
|
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:
name | the 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:
src | Source identifier taken from common message header. |
seq | Sequence number taken from common message header. |
b | Buffer that contains data to be parsed. |
bpos | position 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 Mon Mar 10 19:34:49 2003, using kdoc 2.0a54+XORP. |