bring Csocket up to date, includes new needed function GetSockByFD()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@332 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2005-05-18 03:22:52 +00:00
parent f8dc1a112a
commit 2d1602ec4c
8 changed files with 1415 additions and 1210 deletions
+2
View File
@@ -4,7 +4,9 @@
#include "main.h"
#include <dlfcn.h>
#include <vector>
#include <set>
using std::vector;
using std::set;
#define MODULEDEFS(CLASS) extern "C" { CModule* Load(void* p, CUser* pUser, const CString& sModName); void Unload(CModule* pMod); double GetVersion(); } double GetVersion() { return VERSION; } CModule* Load(void* p, CUser* pUser, const CString& sModName) { return new CLASS(p, pUser, sModName); } void Unload(CModule* pMod) { if (pMod) { delete pMod; } }
#define MODCONSTRUCTOR(CLASS) CLASS(void *pDLL, CUser* pUser, const CString& sModName) : CModule(pDLL, pUser, sModName)