From 22ea240662998b28abb1a4934fa0da541f6b42e4 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 13 Dec 2005 00:00:18 +0000 Subject: Set up externs to allow moving loads of crap out of inspircd.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2362 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 3 +++ src/userprocess.cpp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/include/inspircd.h b/include/inspircd.h index 1c95eb9e5..862b33de3 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -127,3 +127,6 @@ const char* FindServerNamePtr(std::string servername); std::string GetVersionString(); void* dns_task(void* arg); + +void process_buffer(const char* cmdbuf,userrec *user); +void FullConnectUser(userrec* user); diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 0b8474583..079d5a43d 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -81,6 +81,52 @@ extern std::vector module_sockets; extern SocketEngine* SE; +extern time_t TIME; +extern time_t OLDTIME; + +extern int DieDelay; +extern time_t startup_time; +extern int NetBufferSize; +extern int MaxConn; +extern unsigned int SoftLimit; +extern int MaxWhoResults; +extern time_t nb_start; +extern int dns_timeout; + +extern int statsAccept, statsRefused, statsUnknown, statsCollisions, statsDns, statsDnsGood, statsDnsBad, statsConnects, statsSent, statsRecv; + +extern userrec* fd_ref_table[65536]; + +extern int LogLevel; +extern char ServerName[MAXBUF]; +extern char Network[MAXBUF]; +extern char ServerDesc[MAXBUF]; +extern char AdminName[MAXBUF]; +extern char AdminEmail[MAXBUF]; +extern char AdminNick[MAXBUF]; +extern char diepass[MAXBUF]; +extern char restartpass[MAXBUF]; +extern char motd[MAXBUF]; +extern char rules[MAXBUF]; +extern char list[MAXBUF]; +extern char PrefixQuit[MAXBUF]; +extern char DieValue[MAXBUF]; +extern char DNSServer[MAXBUF]; +extern char data[65536]; + + +typedef nspace::hash_map, irc::StrHashComp> user_hash; +typedef nspace::hash_map, irc::StrHashComp> chan_hash; +typedef nspace::hash_map, irc::InAddr_HashComp> address_cache; +typedef nspace::hash_map, irc::StrHashComp> whowas_hash; + +extern user_hash clientlist; +extern chan_hash chanlist; +extern whowas_hash whowas; + +extern FILE *log_file; +extern std::stringstream config_f; + void ProcessUser(userrec* cu) { int result = EAGAIN; -- cgit v1.2.3