|
|||
|
|||
|
#include <users.h>
Inheritance diagram for ConnectClass:


Public Member Functions | |
| ConnectClass (const ConnectClass *source) | |
| Create a new connect class based on an existing connect class. | |
| ConnectClass () | |
| Create a new connect class with no settings. | |
| ConnectClass (const std::string &thename, unsigned int timeout, const std::string &hst, unsigned int ping, const std::string &pas, const std::string &hsh, unsigned long sendq, unsigned long recvq, unsigned long maxl, unsigned long maxg, unsigned int maxc, int p=0) | |
| Create a new connect class to ALLOW connections. | |
| ConnectClass (const std::string &thename, const std::string &hst) | |
| Create a new connect class to DENY connections. | |
| ConnectClass (const std::string &thename, const ConnectClass *source) | |
| void | SetDisabled (bool t) |
| bool | GetDisabled () |
| void | Update (unsigned int timeout, const std::string &hst, unsigned int ping, const std::string &pas, unsigned long sendq, unsigned long recvq, unsigned long maxl, unsigned long maxg, unsigned int maxc, int p, unsigned long llimit) |
| void | Update (const std::string &n, const std::string &hst) |
| size_t | GetMaxChans () |
| char | GetType () |
| Returns the type, CC_ALLOW or CC_DENY. | |
| std::string & | GetName () |
| time_t | GetRegTimeout () |
| Returns the registration timeout. | |
| const std::string & | GetHost () |
| Returns the allowed or denied IP mask. | |
| int | GetPort () |
| Get port number. | |
| void | SetPort (int p) |
| Set port number. | |
| unsigned int | GetPingTime () |
| Returns the ping frequency. | |
| const std::string & | GetPass () |
| Returns the password or an empty string. | |
| const std::string & | GetHash () |
| Returns the hash or an empty string. | |
| unsigned long | GetSendqMax () |
| Returns the maximum sendq value. | |
| unsigned long | GetRecvqMax () |
| Returns the maximum recvq value. | |
| unsigned long | GetMaxLocal () |
| Returusn the maximum number of local sessions. | |
| unsigned long | GetMaxGlobal () |
| Returns the maximum number of global sessions. | |
Public Attributes | |
| unsigned long | RefCount |
| Reference counter. | |
| bool | disabled |
| If this is true, any attempt to set a user to this class will fail. | |
| unsigned long | limit |
| How many users may be in this connect class before they are refused? (0 = disabled = default). | |
Private Attributes | |
| char | type |
| Type of line, either CC_ALLOW or CC_DENY. | |
| std::string | name |
| Connect class name. | |
| unsigned int | registration_timeout |
| Max time to register the connection in seconds. | |
| std::string | host |
| Host mask for this line. | |
| unsigned int | pingtime |
| Number of seconds between pings for this line. | |
| std::string | pass |
| (Optional) Password for this line | |
| std::string | hash |
| (Optional) Hash Method for this line | |
| unsigned long | sendqmax |
| Maximum size of sendq for users in this class (bytes). | |
| unsigned long | recvqmax |
| Maximum size of recvq for users in this class (bytes). | |
| unsigned long | maxlocal |
| Local max when connecting by this connection class. | |
| unsigned long | maxglobal |
| Global max when connecting by this connection class. | |
| unsigned int | maxchans |
| Max channels for this class. | |
| int | port |
| Port number this connect class applies to. | |
Definition at line 77 of file users.h.
|
|
Create a new connect class based on an existing connect class. This is required for std::vector (at least under windows). |
|
|
Create a new connect class with no settings.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Create a new connect class to ALLOW connections.
|
|
||||||||||||
|
Create a new connect class to DENY connections.
|
|
||||||||||||
|
|
|
|
Definition at line 195 of file users.h. Referenced by User::SetClass(). |
|
|
Returns the hash or an empty string.
|
|
|
Returns the allowed or denied IP mask.
Definition at line 276 of file users.h. Referenced by User::SetClass(). |
|
|
Definition at line 250 of file users.h. Referenced by Channel::JoinUser(). |
|
|
Returns the maximum number of global sessions.
Definition at line 339 of file users.h. Referenced by User::CheckClass(). |
|
|
Returusn the maximum number of local sessions.
Definition at line 332 of file users.h. Referenced by User::CheckClass(). |
|
|
Definition at line 262 of file users.h. Referenced by DoConnect(), and User::SetClass(). |
|
|
Returns the password or an empty string.
|
|
|
Returns the ping frequency.
Definition at line 297 of file users.h. Referenced by User::CheckClass(), InspIRCd::DoBackgroundUserStuff(), and CommandParser::ProcessCommand(). |
|
|
Get port number.
Definition at line 283 of file users.h. Referenced by User::SetClass(). |
|
|
Returns the maximum recvq value.
Definition at line 325 of file users.h. Referenced by User::AddBuffer(). |
|
|
Returns the registration timeout.
Definition at line 269 of file users.h. Referenced by InspIRCd::DoBackgroundUserStuff(). |
|
|
Returns the maximum sendq value.
Definition at line 318 of file users.h. Referenced by User::AddWriteBuf(), and ModuleSafeList::OnBufferFlushed(). |
|
|
Returns the type, CC_ALLOW or CC_DENY.
Definition at line 257 of file users.h. References CC_ALLOW, and CC_DENY. Referenced by User::CheckClass(), and User::SetClass(). |
|
|
Definition at line 190 of file users.h. Referenced by InitConnect(). |
|
|
Set port number.
Definition at line 290 of file users.h. Referenced by DoConnect(). |
|
||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 202 of file users.h. Referenced by DoConnect(). |
|
|
If this is true, any attempt to set a user to this class will fail. Default false. This is really private, it's only in the public section thanks to the way this class is written |
|
|
(Optional) Hash Method for this line
|
|
|
Host mask for this line.
|
|
|
How many users may be in this connect class before they are refused? (0 = disabled = default).
Definition at line 248 of file users.h. Referenced by DoConnect(), and User::SetClass(). |
|
|
Max channels for this class.
|
|
|
Global max when connecting by this connection class.
|
|
|
Local max when connecting by this connection class.
|
|
|
Connect class name.
|
|
|
(Optional) Password for this line
|
|
|
Number of seconds between pings for this line.
|
|
|
Port number this connect class applies to.
|
|
|
Maximum size of recvq for users in this class (bytes).
|
|
|
Reference counter. Contains an int as to how many users are connected to this class. :) This will be 0 if no users are connected. If a <connect> is removed from the config, and there are 0 users on it - it will go away in RAM. :) Definition at line 240 of file users.h. Referenced by InitConnect(), User::SetClass(), and User::~User(). |
|
|
Max time to register the connection in seconds.
|
|
|
Maximum size of sendq for users in this class (bytes).
|
|
|
Type of line, either CC_ALLOW or CC_DENY.
|