astxx::manager::response_waiter Class Reference

Collaboration diagram for astxx::manager::response_waiter:

Collaboration graph
[legend]

List of all members.


Detailed Description

Wait for a response.

This is a functior to wait for a response.

 response_waiter rw(connection);
 connection(action, boost::ref(rw));
 message::response r = rw.wait();

Definition at line 42 of file connection.cc.


Public Member Functions

void operator() (message::response r)
 The response handling function.
 response_waiter (manager::connection &connection)
 Constructor.
message::response wait () const
 Wait for a response for this functor.

Constructor & Destructor Documentation

astxx::manager::response_waiter::response_waiter ( manager::connection connection  )  [inline]

Constructor.

Parameters:
connection the connection to watch

Definition at line 47 of file connection.cc.


Member Function Documentation

void astxx::manager::response_waiter::operator() ( message::response  r  )  [inline]

The response handling function.

Parameters:
r the response to handle

Definition at line 54 of file connection.cc.

message::response astxx::manager::response_waiter::wait (  )  const [inline]

Wait for a response for this functor.

Warning:
DO NOT call this function with out first registering this functor as a response handler. Doing so will cause an infinte loop.

Definition at line 63 of file connection.cc.

Referenced by astxx::manager::connection::send_action().


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

Generated on Thu Jul 3 01:32:49 2008 for Astxx by  doxygen 1.5.6