summaryrefslogtreecommitdiff
path: root/include/delphi
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-07 14:14:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-07 14:14:38 +0300
commit68d2c9566660c706ec13564ec7bc029cd85a6752 (patch)
tree74bc27454fe01ba358b9e4ff7a8962affb4cbb21 /include/delphi
parent7d0d9f0db74fbd4750a9c19bd69f4cba368db40e (diff)
MSN was last plugin that used that crap with HTTP Gateways
Diffstat (limited to 'include/delphi')
-rw-r--r--include/delphi/m_netlib.inc23
1 files changed, 4 insertions, 19 deletions
diff --git a/include/delphi/m_netlib.inc b/include/delphi/m_netlib.inc
index 1ab6c9fa8b..32bb3dc4ac 100644
--- a/include/delphi/m_netlib.inc
+++ b/include/delphi/m_netlib.inc
@@ -65,7 +65,6 @@ const
NLOCF_V2 = $0004;
NLOCF_UDP = $0008; // this connection is UDP
NLOCF_SSL = $0010; // this connection is SSL
- NLOCF_HTTPGATEWAY = $0020; // this connection is HTTP Gateway
// for TNETLIBHTTPPROXYINFO.flags
@@ -174,26 +173,12 @@ const
{$ENDIF}
type
- { This function pointer is to the CRT realloc() used by Miranda -- it allows reallocation of memory passed
- to us (not that we could EVER share the same CRT) but to allow DLLs in general to reallocate memory }
- TNetlibRealloc = function(Mem: pointer; size_t: int): pointer; cdecl;
- TNetlibHTTPGatewayInitProc = function(hConn: THANDLE; nloc: PNETLIBOPENCONNECTION; nlhr: PNETLIBHTTPREQUEST): int; cdecl;
- TNetlibHTTPGatewayBeginProc = function(hConn: THANDLE; nloc: PNETLIBOPENCONNECTION): int; cdecl;
- TNetlibHTTPGatewayWrapSendProc = function(hConn: THANDLE; buf: PByte; len: int; flags: int; pfnNetLibSend: TMIRANDASERVICE): int; cdecl;
- TNetlibHTTPGatewayUnwrapRecvProc = function(nlhr: PNETLIBHTTPREQUEST; buf: PByte; len: int; outBufLen: pInt; NetlibRealloc: TNetlibRealloc): PByte; cdecl;
-
PNETLIBUSER = ^TNETLIBUSER;
TNETLIBUSER = record
- szSettingsModule: PAnsiChar; // used for DB settings and log, 'NL' stuff
- szDescriptiveName: TChar; // shows a descriptive name for which different proxy settings can be defined
- flags: dword; // see NUF_* constants above
- szHttpGatewayHello :PAnsiChar;
- szHttpGatewayUserAgent:PAnsiChar; // can be NULL(0) to send no User-Agent: also used by HTTPS proxies
- pfnHttpGatewayInit :TNetlibHTTPGatewayInitProc;
- pfnHttpGatewayBegin :TNetlibHTTPGatewayBeginProc; // can be NULL(0) if no begin is required
- pfnHttpGatewayWrapSend :TNetlibHTTPGatewayWrapSendProc; // can be NULL(0) if no wrapping is required
- pfnHttpGatewayUnwrapRecv:TNetlibHTTPGatewayUnwrapRecvProc; // can be NULL(0) " "
- minIncomingPorts: int; // only if NUF_INCOMING, will be used for validation of user input
+ szSettingsModule: PAnsiChar; // used for DB settings and log, 'NL' stuff
+ szDescriptiveName: TChar; // shows a descriptive name for which different proxy settings can be defined
+ flags: dword; // see NUF_* constants above
+ minIncomingPorts: int; // only if NUF_INCOMING, will be used for validation of user input
end;
PNETLIBUSERSETTINGS = ^TNETLIBUSERSETTINGS;