|
|||
|
|||
|
#include <connection.h>
Inheritance diagram for connection:


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. | |
This can be extended for holding other user-like objects in the future.
Definition at line 25 of file connection.h.
|
|
Stats counter for bytes inbound.
Definition at line 35 of file connection.h. Referenced by DoStats(), InspIRCd::ProcessUser(), and userrec::userrec(). |
|
|
Stats counter for bytes outbound.
Definition at line 39 of file connection.h. Referenced by DoStats(), userrec::FlushWriteBuf(), and userrec::userrec(). |
|
|
Stats counter for commands inbound.
Definition at line 43 of file connection.h. Referenced by DoStats(), InspIRCd::ProcessUser(), and userrec::userrec(). |
|
|
Stats counter for commands outbound.
Definition at line 47 of file connection.h. Referenced by DoStats(), userrec::FlushWriteBuf(), and userrec::userrec(). |
|
|
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(). |
|
|
|
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 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(). |
|
|
Used by PING checking code.
Definition at line 75 of file connection.h. Referenced by userrec::CheckClass(), InspIRCd::DoBackgroundUserStuff(), CommandParser::ProcessCommand(), and userrec::userrec(). |
|
|
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 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(). |