PionNetworkLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pion::tcp::timer Class Reference

#include <timer.hpp>

Inheritance diagram for pion::tcp::timer:
Collaboration diagram for pion::tcp::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) More...
 

Detailed Description

timer: helper class used to time-out TCP connections

Constructor & Destructor Documentation

pion::tcp::timer::timer ( const tcp::connection_ptr conn_ptr)

creates a new TCP connection timer

Parameters
conn_ptrpointer to TCP connection to monitor

Member Function Documentation

void pion::tcp::timer::cancel ( void  )

cancel the timer (operation completed)

void pion::tcp::timer::start ( const boost::uint32_t  seconds)

starts a timer for closing a TCP connection

Parameters
secondsnumber of seconds before the timeout triggers

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