From 0db449bf70966941453cfbb8ec05fd430a96dc12 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jul 2019 13:20:12 +0300 Subject: useless member NETLIBOPENCONNECTION::cbSize removed --- include/delphi/m_netlib.inc | 38 -------------------------------------- include/m_netlib.h | 1 - 2 files changed, 39 deletions(-) (limited to 'include') diff --git a/include/delphi/m_netlib.inc b/include/delphi/m_netlib.inc index 32bb3dc4ac..ac5ab4f947 100644 --- a/include/delphi/m_netlib.inc +++ b/include/delphi/m_netlib.inc @@ -52,20 +52,6 @@ const PROXYTYPE_HTTPS = 4; PROXYTYPE_IE = 5; - // for TNETLIBOPENCONNECTION.flags - - { this connection will be useed for HTTP communications, - if configured for an HTTP(S) proxy the connection is opened as if there - was no proxy } - NLOCF_HTTP = $0001; - { this connection should send the sticky headers associated with NetLib - user apart of any HTTP request} - NLOCF_STICKYHEADERS = $0002; - { this connection understands the newer structure, newer cbSize isnt enough} - NLOCF_V2 = $0004; - NLOCF_UDP = $0008; // this connection is UDP - NLOCF_SSL = $0010; // this connection is SSL - // for TNETLIBHTTPPROXYINFO.flags NLHPIF_USEGETSEQUENCE = $0001; // append sequence numbers to GET requests @@ -115,30 +101,6 @@ const FD_SETSIZE = 65; -type - twaitcallback = function(timeout:dword):integer; cdecl; - - PNETLIBOPENCONNECTION = ^TNETLIBOPENCONNECTION; - TNETLIBOPENCONNECTION = record - cbSize : int; - szHost : PAnsiChar; // can be an IP in string form - wPort : word; - flags : dword; // see NLOCF_* flags - timeout: uint; - // optional, called in the context of the thread that issued the attempt, - // if it returns 0 the connection attempt is stopped, the remaining - // timeout value can also be adjusted - waitcallback:twaitcallback; - end; - -const - {$IFNDEF WIN64} - NETLIBOPENCONNECTION_V1_SIZE = 16; - {$ELSE} - NETLIBOPENCONNECTION_V1_SIZE = sizeof(TNETLIBOPENCONNECTION); - {$ENDIF} - // old sizeof() is 14 bytes, but there is padding of 2 bytes - type PNETLIBHTTPHEADER = ^TNETLIBHTTPHEADER; TNETLIBHTTPHEADER = record diff --git a/include/m_netlib.h b/include/m_netlib.h index ce0c50e5e6..73b0ff2ff7 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -321,7 +321,6 @@ EXTERN_C MIR_APP_DLL(HNETLIBBIND) Netlib_BindPort(HNETLIBUSER nlu, NETLIBBIND *n struct NETLIBOPENCONNECTION { - int cbSize; const char *szHost; // can contain the string representation of an IP WORD wPort; // host byte order DWORD flags; -- cgit v1.2.3