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

Detailed Description

Used to time out socket connections

Constructor & Destructor Documentation

◆ SocketTimeout()

SocketTimeout::SocketTimeout ( int  fd,
BufferedSocket thesock,
unsigned long  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: