From 89749a74402913d50bd5a9140757a383d6ff175e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 15:36:51 +0000 Subject: Move fd_ref_table into class InspIRCd* git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4817 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 7 ++++++- include/userprocess.h | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/inspircd.h b/include/inspircd.h index 54500cd4d..a8ef3bf1d 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -97,6 +97,10 @@ class InspIRCd : public classbase void MoveAfter(std::string modulename, std::string after); void MoveBefore(std::string modulename, std::string before); + void ProcessUser(userrec* cu); + void DoSocketTimeouts(time_t TIME); + void DoBackgroundUserStuff(time_t TIME); + public: time_t startup_time; ModeParser* ModeGrok; @@ -105,7 +109,8 @@ class InspIRCd : public classbase serverstats* stats; ServerConfig* Config; std::vector module_sockets; - InspSocket* socket_ref[MAX_DESCRIPTORS]; + InspSocket* socket_ref[MAX_DESCRIPTORS]; /* XXX: This should probably be made private, with inline accessors */ + userrec* fd_ref_table[MAX_DESCRIPTORS]; /* XXX: Ditto */ DNS* Res; std::string GetRevision(); diff --git a/include/userprocess.h b/include/userprocess.h index 1a93e68cd..0e1b11976 100644 --- a/include/userprocess.h +++ b/include/userprocess.h @@ -8,8 +8,8 @@ void CheckDie(); void LoadAllModules(InspIRCd* ServerInstance); void CheckRoot(); void OpenLog(char** argv, int argc); -void DoBackgroundUserStuff(time_t TIME); +/*void DoBackgroundUserStuff(time_t TIME); void ProcessUser(userrec* cu); -void DoSocketTimeouts(time_t TIME, InspIRCd* SI); +void DoSocketTimeouts(time_t TIME, InspIRCd* SI);*/ #endif -- cgit v1.2.3