72#define E_PROXY_AUTH -1000
73#define E_PROXY_GENERAL -1001
74#define E_PROXY_NOT_ALLOWED -1002
75#define E_PROXY_NETWORK -1003
76#define E_PROXY_HOST -1004
77#define E_PROXY_REFUSED -1005
78#define E_PROXY_TTL -1006
79#define E_PROXY_COMMAND_NOT_SUP -1007
80#define E_PROXY_ADDRESS_NOT_SUP -1008
81#define E_PROXY_NOT_COMPATIBLE -1009
82#define E_PROXY_UNKNOWN -1010
83#define E_PROXY_CLOSED -1011
84#define E_PROXY_CANNOTCONNECT -1012
122 U16 proxyPortNo,
const char* proxyUserPass,
TLS objects, certificate/session operations, and public-key interfaces.
void Proxy_constructor(Proxy *o, const char *proxyName, U16 proxyPortNo, const char *proxyUserPass, int socks)
Initialize settings without allocating memory or opening a connection.
struct Proxy Proxy
Caller-owned proxy settings with borrowed string pointers.
int(* ProxyConnect)(struct Proxy *o, struct ProxyArgs *args)
Internal connector selected by Proxy_constructor; applications do not call it.
Definition: proxy.h:99
Caller-owned proxy settings with borrowed string pointers.
Definition: proxy.h:103
U16 proxyPortNo
Proxy TCP port, 1 through 65535.
Definition: proxy.h:107
const char * proxyName
Required borrowed NUL-terminated proxy hostname/address.
Definition: proxy.h:106
const char * proxyUserPass
Borrowed NUL-terminated user:password, or NULL.
Definition: proxy.h:105
ProxyConnect connect
Connector set by the constructor; do not replace it.
Definition: proxy.h:104