InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Public Member Functions | List of all members
SocketTimeout Class Reference

#include <inspsocket.h>

Inheritance diagram for SocketTimeout:

Public Member Functions

 SocketTimeout (int fd, BufferedSocket *thesock, long secs_from_now, time_t now)
virtual void Tick (time_t now)
- Public Member Functions inherited from Timer
 Timer (long secs_from_now, time_t now, bool repeating=false)
virtual ~Timer ()
virtual time_t GetTimer ()
virtual void SetTimer (time_t t)
bool GetRepeat ()
long GetSecs ()
void CancelRepeat ()

Detailed Description

Used to time out socket connections

Constructor & Destructor Documentation

SocketTimeout::SocketTimeout ( int  fd,
BufferedSocket thesock,
long  secs_from_now,
time_t  now 

Create a socket timeout class

fdFile descriptor of BufferedSocket
thesockBufferedSocket to attach to
secs_from_nowSeconds from now to time out
nowThe current time

Member Function Documentation

void SocketTimeout::Tick ( time_t  now)

Handle tick event

Implements Timer.

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