Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

connection Class Reference

Please note: classes serverrec and userrec both inherit from class connection. More...

#include <connection.h>

Inheritance diagram for connection:

Inheritance graph
[legend]
Collaboration diagram for connection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 connection ()
 Default constructor.


Public Attributes

int fd
 File descriptor of the connection.

char host [160]
 Hostname of connection.

char ip [16]
 IP of connection.

int bytes_in
 Stats counter for bytes inbound.

int bytes_out
 Stats counter for bytes outbound.

int cmds_in
 Stats counter for commands inbound.

int cmds_out
 Stats counter for commands outbound.

bool haspassed
 True if server/user has authenticated, false if otherwise.

int port
 Port number For a userrec, this is the port they connected to the network on.

char registered
 Used by userrec to indicate the registration status of the connection.

time_t lastping
 Time the connection was last pinged.

time_t signon
 Time the connection was created, set in the constructor.

time_t idle_lastmsg
 Time that the connection last sent data, used to calculate idle time.

time_t nping
 Used by PING checks with clients.


Detailed Description

Please note: classes serverrec and userrec both inherit from class connection.

Definition at line 261 of file connection.h.


Constructor & Destructor Documentation

connection::connection  ) 
 

Default constructor.


Member Data Documentation

int connection::bytes_in
 

Stats counter for bytes inbound.

Definition at line 278 of file connection.h.

Referenced by userrec::userrec().

int connection::bytes_out
 

Stats counter for bytes outbound.

Definition at line 282 of file connection.h.

Referenced by userrec::FlushWriteBuf(), and userrec::userrec().

int connection::cmds_in
 

Stats counter for commands inbound.

Definition at line 286 of file connection.h.

Referenced by userrec::userrec().

int connection::cmds_out
 

Stats counter for commands outbound.

Definition at line 290 of file connection.h.

Referenced by userrec::FlushWriteBuf(), and userrec::userrec().

int connection::fd
 

File descriptor of the connection.

Definition at line 266 of file connection.h.

Referenced by serverrec::BeginLink(), serverrec::CreateListener(), ConfigReader::DumpErrors(), serverrec::MeshCookie(), Server::PseudoToUser(), userrec::ReadData(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo().

bool connection::haspassed
 

True if server/user has authenticated, false if otherwise.

Definition at line 294 of file connection.h.

Referenced by userrec::userrec().

char connection::host[160]
 

Hostname of connection.

Not used if this is a serverrec

Definition at line 270 of file connection.h.

Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo().

time_t connection::idle_lastmsg
 

Time that the connection last sent data, used to calculate idle time.

Definition at line 316 of file connection.h.

Referenced by userrec::userrec().

char connection::ip[16]
 

IP of connection.

Definition at line 274 of file connection.h.

Referenced by userrec::userrec().

time_t connection::lastping
 

Time the connection was last pinged.

Definition at line 308 of file connection.h.

Referenced by serverrec::serverrec(), and userrec::userrec().

time_t connection::nping
 

Used by PING checks with clients.

Definition at line 320 of file connection.h.

Referenced by userrec::userrec().

int connection::port
 

Port number For a userrec, this is the port they connected to the network on.

For a serverrec this is the current listening port of the serverrec object.

Definition at line 300 of file connection.h.

Referenced by serverrec::CreateListener(), and userrec::userrec().

char connection::registered
 

Used by userrec to indicate the registration status of the connection.

Definition at line 304 of file connection.h.

Referenced by userrec::userrec().

time_t connection::signon
 

Time the connection was created, set in the constructor.

Definition at line 312 of file connection.h.

Referenced by serverrec::serverrec(), and userrec::userrec().


The documentation for this class was generated from the following file:
Generated on Wed May 25 21:43:05 2005 for InspIRCd by doxygen 1.3.3