FACT++  1.0
template<class T >
void Connection::AsyncWaitImp ( boost::asio::deadline_timer &  timer,
int  millisec,
void(T::*)(const boost::system::error_code &)  handler 
)
inline

Definition at line 59 of file Connection.h.

Referenced by AsyncWait().

61  {
62  // - The boost::asio::basic_deadline_timer::expires_from_now()
63  // function cancels any pending asynchronous waits, and returns
64  // the number of asynchronous waits that were cancelled. If it
65  // returns 0 then you were too late and the wait handler has
66  // already been executed, or will soon be executed. If it
67  // returns 1 then the wait handler was successfully cancelled.
68  // - If a wait handler is cancelled, the bs::error_code passed to
69  // it contains the value bs::error::operation_aborted.
70  timer.expires_from_now(boost::posix_time::milliseconds(millisec));
71 
72  timer.async_wait(boost::bind(handler, this, boost::asio::placeholders::error));
73  }
static void handler(int conn_id, char *packet, int size, int status)
Definition: webServer.c:635

+ Here is the caller graph for this function: