InspIRCd  3.0
Public Member Functions | List of all members
SocketTimeout Class Reference

#include <inspsocket.h>

Inheritance diagram for SocketTimeout:
Timer

Public Member Functions

 SocketTimeout (int fd, BufferedSocket *thesock, long secs_from_now)
 
virtual bool Tick (time_t now)
 
- 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 (time_t 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,
long  secs_from_now 
)
inline

Create a socket timeout class

Parameters
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)
virtual

Handle tick event

Implements Timer.


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