InspIRCd  3.0
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, unsigned int secs_from_now)
bool Tick (time_t now) CXX11_OVERRIDE
- Public Member Functions inherited from Timer
 Timer (unsigned int secs_from_now, bool repeating=false)
virtual ~Timer ()
time_t GetTrigger () const
void SetTrigger (time_t nexttrigger)
void SetInterval (unsigned int interval)
bool GetRepeat () const
unsigned int GetInterval () const
void CancelRepeat ()

Detailed Description

Used to time out socket connections

Constructor & Destructor Documentation

◆ SocketTimeout()

SocketTimeout::SocketTimeout ( int  fd,
BufferedSocket thesock,
unsigned int  secs_from_now 

Create a socket timeout class

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

Member Function Documentation

◆ Tick()

bool SocketTimeout::Tick ( time_t  now)

Handle tick event

Implements Timer.

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