dht::notify_handler Class Reference

Interface for handling success/failure notifications. More...

#include <dht/notify_handler.h>

Inheritance diagram for dht::notify_handler:

dht::search_handler List of all members.

Public Member Functions

virtual void success ()=0
 Called in case of success.
virtual void failure (int error, const char *errstr)=0
 Called in case of a failure.

Detailed Description

Interface for handling success/failure notifications.

Classes that implement this interface can receive and react to notifications from DHT implementations.


Member Function Documentation

virtual void dht::notify_handler::success (  )  [pure virtual]

Called in case of success.

Implemented in dht::search_handler.

virtual void dht::notify_handler::failure ( int  error,
const char *  errstr 
) [pure virtual]

Called in case of a failure.

Parameters:
error an error code
errstr a NULL terminated string giving exact reason for the error

Implemented in dht::search_handler.


The documentation for this class was generated from the following file:
Generated on Thu Mar 1 16:18:47 2007 for libdht by  doxygen 1.5.1