commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::Listener::Callback Class Referenceabstract

#include <Listener.h>

+ Inheritance diagram for commore::Listener::Callback:

Public Member Functions

 Callback ()
 
virtual ~Callback ()
 
void detach ()
 
virtual int call (const Tuple &in_req, Tuple &out_req)=0
 

Friends

class Listener
 

Detailed Description

Callback. When callback is attached to a Listener Listener call Callback::call() each time it recieves a call message from a sender.

Examples:
/examples/coding/Listener.cpp.

Constructor & Destructor Documentation

Listener::Callback::Callback ( )
Listener::Callback::~Callback ( )
virtual

Member Function Documentation

virtual int commore::Listener::Callback::call ( const Tuple in_req,
Tuple out_req 
)
pure virtual

Incomming call

Note
call MUST be protected from multi-thread acces
Parameters
in_reqinput argument
out_reqoutput argument
Returns
call status

Implemented in commore::PServiceManager::Impl.

void Listener::Callback::detach ( )

Force Detach from listener Must be call explicitely by destructor of derived class, meanwhile it is called by Callback destructor

Friends And Related Function Documentation

friend class Listener
friend

The documentation for this class was generated from the following files: