FACT++  1.0
void ConnectionUSB::AsyncWait ( boost::asio::deadline_timer &  timer,
int  millisec,
void(ConnectionUSB::*)(const boost::system::error_code &)  handler 
)

Definition at line 53 of file ConnectionUSB.cc.

Referenced by Out().

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

+ Here is the caller graph for this function: