#include <connection.h>
Inheritance diagram for connection:
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. |
Definition at line 296 of file connection.h.
|
Default constructor.
|
|
Stats counter for bytes inbound.
Definition at line 313 of file connection.h. Referenced by userrec::userrec(). |
|
Stats counter for bytes outbound.
Definition at line 317 of file connection.h. Referenced by userrec::FlushWriteBuf(), and userrec::userrec(). |
|
Stats counter for commands inbound.
Definition at line 321 of file connection.h. Referenced by userrec::userrec(). |
|
Stats counter for commands outbound.
Definition at line 325 of file connection.h. Referenced by userrec::FlushWriteBuf(), and userrec::userrec(). |
|
File descriptor of the connection.
Definition at line 301 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(). |
|
True if server/user has authenticated, false if otherwise.
Definition at line 329 of file connection.h. Referenced by userrec::userrec(). |
|
Hostname of connection. Not used if this is a serverrec Definition at line 305 of file connection.h. Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo(). |
|
Time that the connection last sent data, used to calculate idle time.
Definition at line 351 of file connection.h. Referenced by userrec::userrec(). |
|
IP of connection.
Definition at line 309 of file connection.h. Referenced by userrec::userrec(). |
|
Time the connection was last pinged.
Definition at line 343 of file connection.h. Referenced by serverrec::serverrec(), and userrec::userrec(). |
|
Used by PING checks with clients.
Definition at line 355 of file connection.h. Referenced by userrec::userrec(). |
|
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 335 of file connection.h. Referenced by serverrec::CreateListener(), and userrec::userrec(). |
|
Used by userrec to indicate the registration status of the connection.
Definition at line 339 of file connection.h. Referenced by userrec::userrec(). |
|
Time the connection was created, set in the constructor.
Definition at line 347 of file connection.h. Referenced by serverrec::serverrec(), and userrec::userrec(). |