The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download | Blog | Stats
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

connection Class Reference

connection is the base class of userrec, and holds basic user properties. More...

#include <connection.h>

Inheritance diagram for connection:

Inheritance graph
[legend]
Collaboration diagram for connection:

Collaboration graph
[legend]
List of all members.

Public Attributes

char host [65]
 Hostname 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 user has authenticated, false if otherwise.
char registered
 Used by userrec to indicate the registration status of the connection It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate the connection state.
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 a message, used to calculate idle time.
time_t nping
 Used by PING checking code.

Detailed Description

connection is the base class of userrec, and holds basic user properties.

This can be extended for holding other user-like objects in the future.

Definition at line 25 of file connection.h.


Member Data Documentation

int connection::bytes_in
 

Stats counter for bytes inbound.

Definition at line 35 of file connection.h.

Referenced by DoStats(), InspIRCd::ProcessUser(), and userrec::userrec().

int connection::bytes_out
 

Stats counter for bytes outbound.

Definition at line 39 of file connection.h.

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

int connection::cmds_in
 

Stats counter for commands inbound.

Definition at line 43 of file connection.h.

Referenced by DoStats(), InspIRCd::ProcessUser(), and userrec::userrec().

int connection::cmds_out
 

Stats counter for commands outbound.

Definition at line 47 of file connection.h.

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

bool connection::haspassed
 

True if user has authenticated, false if otherwise.

Definition at line 51 of file connection.h.

Referenced by userrec::FullConnect(), cmd_pass::Handle(), and userrec::userrec().

char connection::host[65]
 

Hostname of connection.

This should be valid as per RFC1035.

Definition at line 31 of file connection.h.

Referenced by userrec::AddClient(), ModuleSQLAuth::CheckCredentials(), ModuleLDAPAuth::CheckCredentials(), ModuleCgiIRC::CheckIdent(), ModuleCgiIRC::CheckPass(), do_whois(), ModuleAlias::DoCommand(), DoStats(), InspIRCd::FloodQuitUser(), userrec::FullConnect(), userrec::GetFullRealHost(), cmd_title::Handle(), cmd_webirc::Handle(), cmd_userhost::Handle(), cmd_restart::Handle(), cmd_oper::Handle(), cmd_nick::Handle(), cmd_kill::Handle(), cmd_die::Handle(), TreeSocket::IntroduceClient(), userrec::MakeHost(), XLineManager::matches_exception(), XLineManager::matches_gline(), XLineManager::matches_kline(), CGIResolver::OnError(), ModuleSQLLog::OnGlobalOper(), ModuleSQLLog::OnKill(), CGIResolver::OnLookupComplete(), CloakUser::OnModeChange(), ModuleSQLLog::OnOper(), ModuleOperSSLCert::OnPreCommand(), ModuleOperLog::OnPreCommand(), ModuleSQLAuth::OnRequest(), ModuleSpanningTree::OnStats(), ModuleSpanningTree::OnUserConnect(), ModuleSQLLog::OnUserConnect(), ModuleModesOnConnect::OnUserConnect(), ModuleCgiIRC::OnUserConnect(), ModuleChanCreate::OnUserJoin(), ModuleSQLLog::OnUserQuit(), ModuleCgiIRC::OnUserRegister(), ModuleShowwhois::OnWhois(), ModuleSQLOper::OperUser(), userrec::QuitUser(), cmd_who::SendWhoLine(), userrec::userrec(), cmd_who::whomatch(), and WhoWasGroup::WhoWasGroup().

time_t connection::idle_lastmsg
 

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

Definition at line 71 of file connection.h.

Referenced by userrec::FullConnect(), cmd_setidle::Handle(), cmd_privmsg::Handle(), cmd_notice::Handle(), userrec::userrec(), and TreeSocket::Whois().

time_t connection::lastping
 

Time the connection was last pinged.

Definition at line 61 of file connection.h.

Referenced by userrec::AddClient(), InspIRCd::DoBackgroundUserStuff(), cmd_pong::Handle(), and userrec::userrec().

time_t connection::nping
 

Used by PING checking code.

Definition at line 75 of file connection.h.

Referenced by userrec::CheckClass(), InspIRCd::DoBackgroundUserStuff(), CommandParser::ProcessCommand(), and userrec::userrec().

char connection::registered
 

Used by userrec to indicate the registration status of the connection It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate the connection state.

Definition at line 57 of file connection.h.

Referenced by userrec::AddClient(), CullList::Apply(), do_whois(), InspIRCd::DoBackgroundUserStuff(), InspIRCd::FloodQuitUser(), userrec::FullConnect(), cmd_userip::Handle(), cmd_webirc::Handle(), cmd_userhost::Handle(), cmd_user::Handle(), cmd_pass::Handle(), cmd_nick::Handle(), TreeSocket::IntroduceClient(), chanrec::JoinUser(), ModuleSpanningTree::OnChangeHost(), ModuleSpanningTree::OnChangeName(), ModuleSpanningTree::OnMode(), ModuleBlockAmsg::OnPreCommand(), ModuleAlias::OnPreCommand(), ModuleSpanningTree::OnUserQuit(), CommandParser::ProcessCommand(), InspIRCd::ProcessUser(), userrec::SharesChannelWith(), userrec::userrec(), and cmd_who::whomatch().

time_t connection::signon
 

Time the connection was created, set in the constructor.

This may be different from the time the user's classbase object was created.

Definition at line 67 of file connection.h.

Referenced by userrec::AddClient(), InspIRCd::DoBackgroundUserStuff(), cmd_setidle::Handle(), cmd_whois::Handle(), TreeSocket::IntroduceClient(), ModuleSecureList::OnPreCommand(), userrec::userrec(), and TreeSocket::Whois().


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