#include "services.h"
#include "hash.h"
#include "nickserv.h"
#include "memoserv.h"
#include "infoserv.h"
#include "db.h"
#include "log.h"
Go to the source code of this file.
Functions | |
void | flushLogs (char *) |
Flush services logs. | |
void | checkTusers (char *) |
Check total number of users. | |
void | writeServicesTotals () |
Write out services.totals. | |
void | sshutdown (int type) |
Shuts down services. | |
void | handler (int sig) |
Signal handler. | |
Variables | |
char | myname [255] |
Name of services. | |
char | mypass [33] |
Password of services' N-line. | |
char | hostname [255] |
Hostname of services' uplink. | |
int | port |
IRC Port of services' uplink. | |
int | server |
File descriptor of services' connection with the uplink. | |
Service | services [NUMSERVS] |
Array of services and their data... see above for Service struct. | |
database | db |
Database files. | |
SLogfile * | operlog |
Services Log handlers. | |
SLogfile * | nicklog |
Services Log handlers. | |
SLogfile * | chanlog |
Services Log handlers. | |
FILE * | corelog |
Logfile to record system errors/debug information. | |
u_long | totalusers |
Total online users. | |
u_long | mostusers = 0 mostnicks = 0 mostchans = 0 mostmemos = 0 |
Maximum concurrent users. | |
unsigned long | top_akill_stamp |
Highest akill stamp in use. | |
long | startup |
Time services started (now or first time). | |
long | firstup |
Time services started (now or first time). | |
char * | OperServ |
Services nickname constants. | |
char * | NickServ |
Services nickname constants. | |
char * | ChanServ |
Services nickname constants. | |
char * | MemoServ |
Services nickname constants. | |
char * | InfoServ |
Services nickname constants. | |
char * | GameServ |
Services nickname constants. | |
char * | MassServ |
char | coreBuffer [IRCBUF] |
Used for printing core messages. | |
u_int | AccessLimit = 3 OpLimit = 25 AkickLimit = 30 ChanLimit = 10 NickLimit = 5 |
Limits set in services.conf. | |
time_t | CTime |
Current time (UTC), keep this in mind... | |
time_t | nextNsync |
Times (UTC) of next syncs. | |
time_t | nextCsync |
Times (UTC) of next syncs. | |
time_t | nextMsync |
Times (UTC) of next syncs. |
Definition in file signal.c.
|
Check total number of users. Checks the total number of users to see if a change to the network PLUS-L-CHANNEL mode is necessary to take into account a new maximum number of concurrent connections. Definition at line 122 of file signal.c. References checkTusers(), mostusers, OperServ, sSend(), and timer(). Referenced by checkTusers(), and parseLine(). |
|
Flush services logs. Performs a 'flush' on the log files resulting in any new services log messages being written to disk Definition at line 103 of file signal.c. References corelog, SLogfile::flush(), flushLogs(), and timer(). Referenced by ConnectToServer(), and parseLine(). |
|
Signal handler.
Definition at line 216 of file signal.c. References coreBuffer, corelog, dlogDump(), logDump(), sSend(), sshutdown(), and timed_akill_queue(). Referenced by main(). |
|
Shuts down services.
Definition at line 165 of file signal.c. References saveakills(), saveInfoData(), saveMemoData(), saveNickData(), sSend(), syncChanData(), timed_akill_queue(), VERSION_NUM, and writeServicesTotals(). Referenced by breakLine(), ConnectToServer(), handler(), main(), oalloc(), parseLine(), readChanData(), readConf(), readInfoData(), readMemoData(), readNickData(), sSend(), and unexpected_eof(). |
|
Write out services.totals. Save services' statistical/total info Also, save top serial numbers and other important info Definition at line 142 of file signal.c. References mostchans, mostmemos, mostnicks, mostusers, and top_akill_stamp. Referenced by sshutdown(), and sync_cfg(). |
|
Highest akill stamp in use.
Definition at line 85 of file signal.c. Referenced by addakill(), loadakills(), main(), and writeServicesTotals(). |