From 5b74bda58f47e7894a83643b86d24f0c78e60285 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Thu, 24 Nov 2011 16:55:09 +0000 Subject: added HTTPServer git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@206 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- HTTPServer/Glob.h | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 HTTPServer/Glob.h (limited to 'HTTPServer/Glob.h') diff --git a/HTTPServer/Glob.h b/HTTPServer/Glob.h new file mode 100644 index 0000000..a3a1f71 --- /dev/null +++ b/HTTPServer/Glob.h @@ -0,0 +1,69 @@ +//This file is part of HTTPServer a Miranda IM plugin +//Copyright (C)2002 Kennet Nielsen +// +//This program is free software; you can redistribute it and/or +//modify it under the terms of the GNU General Public License +//as published by the Free Software Foundation; either +//version 2 of the License, or (at your option) any later version. +// +//This program is distributed in the hope that it will be useful, +//but WITHOUT ANY WARRANTY; without even the implied warranty of +//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//GNU General Public License for more details. +// +//You should have received a copy of the GNU General Public License +//along with this program; if not, write to the Free Software +//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +#ifndef HTTP_SERVER_GLOB_H +#define HTTP_SERVER_GLOB_H + +#include + +#ifndef INVALID_SET_FILE_POINTER +#define INVALID_SET_FILE_POINTER (unsigned long)(-1) +#endif + +#ifndef ULONG_PTR +#define ULONG_PTR ULONG +#endif + +#define SD_RECEIVE 0x00 +#define SD_SEND 0x01 +#define SD_BOTH 0x02 + +#define MODULE "HTTPServer" +#define MSG_BOX_TITEL "Miranda (HTTPServer.dll)" + +#define SplitIpAddress( p ) (BYTE)(p>>24),(BYTE)(p>>16),(BYTE)(p>>8),(BYTE)(p) + +extern HINSTANCE hInstance; + +extern HANDLE hNetlibUser; + +extern bool bShutdownInProgress; +bool bWriteConfigurationFile(); + +void LogEvent(const char * pszTitle, const char * pszLog); +bool bOpenLogFile(); + +extern char szPluginPath[MAX_PATH]; +extern int nPluginPathLen; + +extern DWORD dwLocalIpAddress; +extern DWORD dwLocalPortUsed; +extern DWORD dwExternalIpAddress; + +extern int nMaxUploadSpeed; +extern int nMaxConnectionsTotal; +extern int nMaxConnectionsPerUser; +extern int nDefaultDownloadLimit; +extern bool bIsOnline; +extern bool bLimitOnlyWhenOnline; + +extern void* (*MirandaMalloc)(size_t); +extern void (*MirandaFree)(void*); + +extern char * pszVersion; + +#endif \ No newline at end of file -- cgit v1.2.3