summaryrefslogtreecommitdiff
path: root/plugins/ProxySwitch/src/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ProxySwitch/src/stdafx.h')
-rw-r--r--plugins/ProxySwitch/src/stdafx.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/plugins/ProxySwitch/src/stdafx.h b/plugins/ProxySwitch/src/stdafx.h
index 59ccea28cd..8e0de00058 100644
--- a/plugins/ProxySwitch/src/stdafx.h
+++ b/plugins/ProxySwitch/src/stdafx.h
@@ -68,23 +68,22 @@ typedef struct {
} NETWORK_INTERFACE_LIST;
// structure holding an information about local end of an active connections
-typedef struct {
- ULONG IP;
- unsigned short Port;
-} ACTIVE_CONNECTION, *PACTIVE_CONNECTION;
+struct ACTIVE_CONNECTION
+{
+ ACTIVE_CONNECTION(ULONG _ip, unsigned short _port) :
+ IP(_ip),
+ Port(_port)
+ {}
-// list of structures holding local end of active connections
-typedef struct {
- PACTIVE_CONNECTION item;
- UCHAR count;
- UCHAR _alloc;
-} ACTIVE_CONNECTION_LIST;
+ ULONG IP;
+ unsigned short Port;
+};
+extern OBJLIST<ACTIVE_CONNECTION> g_arConnections;
/**** Global variables *********************************************************************/
extern NETWORK_INTERFACE_LIST NIF_List;
-extern ACTIVE_CONNECTION_LIST Connection_List;
extern mir_cs csNIF_List;
extern mir_cs csConnection_List;
extern HANDLE hEventRebound;