pion
5.0.6
|
#include <timer.hpp>
Inherits enable_shared_from_this< timer >.
Public Member Functions | |
timer (const tcp::connection_ptr &conn_ptr) | |
void | start (const boost::uint32_t seconds) |
void | cancel (void) |
cancel the timer (operation completed) | |
pion::tcp::timer::timer | ( | const tcp::connection_ptr & | conn_ptr | ) |
creates a new TCP connection timer
conn_ptr | pointer to TCP connection to monitor |
Definition at line 20 of file tcp_timer.cpp.
void pion::tcp::timer::start | ( | const boost::uint32_t | seconds | ) |
starts a timer for closing a TCP connection
seconds | number of seconds before the timeout triggers |
Definition at line 26 of file tcp_timer.cpp.