From 321c618576ce8dd64da80a05932f3f2c4ee90f72 Mon Sep 17 00:00:00 2001 From: Mataes Date: Sun, 24 Jun 2018 01:33:59 +0300 Subject: ProxySwitch: it compiles but don't work --- include/m_netlib.h | 80 +++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'include') diff --git a/include/m_netlib.h b/include/m_netlib.h index 42b0a4d432..c23d0fddc1 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -200,16 +200,16 @@ struct NETLIBUSERSETTINGS EXTERN_C MIR_APP_DLL(int) Netlib_GetUserSettings(HNETLIBUSER nlu, NETLIBUSERSETTINGS *result); -///////////////////////////////////////////////////////////////////////////////////////// -//Gets the user-configured settings for a netlib user idetified by name -// -//Returns nonzero on success, 0 on failure (!! this is different to most of the rest of Miranda, but consistent with netlib) -//This function behaves like Netlib_GetUserSettings but the user is identified -//by the name provided by registration. When the name is not found NETLIBUSERSETTINGS is set to NULL. -//Errors: ERROR_INVALID_PARAMETER - -EXTERN_C MIR_APP_DLL(int) Netlib_GetUserSettingsByName(char * UserSettingsName, NETLIBUSERSETTINGS *result); - +///////////////////////////////////////////////////////////////////////////////////////// +//Gets the user-configured settings for a netlib user idetified by name +// +//Returns nonzero on success, 0 on failure (!! this is different to most of the rest of Miranda, but consistent with netlib) +//This function behaves like Netlib_GetUserSettings but the user is identified +//by the name provided by registration. When the name is not found NETLIBUSERSETTINGS is set to NULL. +//Errors: ERROR_INVALID_PARAMETER + +EXTERN_C MIR_APP_DLL(int) Netlib_GetUserSettingsByName(char * UserSettingsName, NETLIBUSERSETTINGS *result); + ///////////////////////////////////////////////////////////////////////////////////////// // Changes the user-configurable settings for a netlib user // @@ -223,15 +223,15 @@ EXTERN_C MIR_APP_DLL(int) Netlib_GetUserSettingsByName(char * UserSettingsName, EXTERN_C MIR_APP_DLL(int) Netlib_SetUserSettings(HNETLIBUSER nlu, const NETLIBUSERSETTINGS *result); ///////////////////////////////////////////////////////////////////////////////////////// -//Changes the user-configurable settings for a netlib user idetified by name -// -//Returns nonzero on success, 0 on failure (!! this is different to most of the rest of Miranda, but consistent with netlib) -//This function behaves like Netlib_SetUserSettings but the user is identified -//by the name provided by registration. Nothing will be changed when the name is not found. -//Errors: ERROR_INVALID_PARAMETER - -EXTERN_C MIR_APP_DLL(int) Netlib_SetUserSettingsByName(char * UserSettingsName, NETLIBUSERSETTINGS *result); - +//Changes the user-configurable settings for a netlib user idetified by name +// +//Returns nonzero on success, 0 on failure (!! this is different to most of the rest of Miranda, but consistent with netlib) +//This function behaves like Netlib_SetUserSettings but the user is identified +//by the name provided by registration. Nothing will be changed when the name is not found. +//Errors: ERROR_INVALID_PARAMETER + +EXTERN_C MIR_APP_DLL(int) Netlib_SetUserSettingsByName(char * UserSettingsName, NETLIBUSERSETTINGS *result); + ///////////////////////////////////////////////////////////////////////////////////////// // Closes a netlib handle // @@ -782,26 +782,26 @@ struct NETLIBNOTIFY #define ME_NETLIB_FASTSEND "Netlib/OnSend" // being called on every send #define ME_NETLIB_FASTDUMP "Netlib/OnDump" // being called on every dump -struct NETLIBCONNECTIONEVENTINFO -{ - BOOL connected; // 1-opening socket 0-closing socket - BOOL listening; // 1-bind 0-connect - SOCKADDR_IN local; // local IP+port (always used) - SOCKADDR_IN remote; // remote IP+port (only connect (opening + closing only if no proxy)) - SOCKADDR_IN proxy; // proxy IP+port (only connect when used) - char *szSettingsModule; // name of the registered Netlib user that requested the action -}; - -//This event is sent as a new port is bound or a new connection opened. -//It is NOT sent for sigle HTTP(S) requests. -//wParam=(WPARAM)(NETLIBCONNECTIONEVENTINFO*)hInfo -//lParam=(LPARAM)0 (not used) -#define ME_NETLIB_EVENT_CONNECTED "Netlib/Event/Connected" - -//This event is sent if coneection or listening socket is closed. -//It is NOT sent for sigle HTTP(S) requests. -//wParam=(WPARAM)(NETLIBCONNECTIONEVENTINFO*)hInfo -//lParam=(LPARAM)0 (not used) -#define ME_NETLIB_EVENT_DISCONNECTED "Netlib/Event/Disconnected" +struct NETLIBCONNECTIONEVENTINFO +{ + BOOL connected; // 1-opening socket 0-closing socket + BOOL listening; // 1-bind 0-connect + SOCKADDR_IN local; // local IP+port (always used) + SOCKADDR_IN remote; // remote IP+port (only connect (opening + closing only if no proxy)) + SOCKADDR_IN proxy; // proxy IP+port (only connect when used) + char *szSettingsModule; // name of the registered Netlib user that requested the action +}; + +//This event is sent as a new port is bound or a new connection opened. +//It is NOT sent for sigle HTTP(S) requests. +//wParam=(WPARAM)(NETLIBCONNECTIONEVENTINFO*)hInfo +//lParam=(LPARAM)0 (not used) +#define ME_NETLIB_EVENT_CONNECTED "Netlib/Event/Connected" + +//This event is sent if coneection or listening socket is closed. +//It is NOT sent for sigle HTTP(S) requests. +//wParam=(WPARAM)(NETLIBCONNECTIONEVENTINFO*)hInfo +//lParam=(LPARAM)0 (not used) +#define ME_NETLIB_EVENT_DISCONNECTED "Netlib/Event/Disconnected" #endif // M_NETLIB_H__ -- cgit v1.2.3