diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-24 13:20:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-24 13:20:12 +0300 |
commit | 0db449bf70966941453cfbb8ec05fd430a96dc12 (patch) | |
tree | e01421e30b58ae2799929e16a6a326f5d4f68a5d /include | |
parent | 30dad0388a14244ef9b06afc113085f6a49bcbb8 (diff) |
useless member NETLIBOPENCONNECTION::cbSize removed
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_netlib.inc | 38 | ||||
-rw-r--r-- | include/m_netlib.h | 1 |
2 files changed, 0 insertions, 39 deletions
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
@@ -116,30 +102,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
szName : PAnsiChar;
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;
|