Version 1.8.0.0
[socat.git] / xio-proxy.h
blobfee18b732edf3d5248cbf6fc2f5ee33c552970ee
1 /* source: xio-proxy.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 #ifndef __xio_proxy_h_included
6 #define __xio_proxy_h_included 1
9 struct proxyvars {
10 bool ignorecr;
11 char *version;
12 bool doresolve;
13 char *authstring;
14 char *authfile;
15 char *targetaddr; /* name/address of host, in malloced string */
16 uint16_t targetport;
17 } ;
19 extern const struct optdesc opt_proxyport;
20 extern const struct optdesc opt_ignorecr;
21 extern const struct optdesc opt_http_version;
22 extern const struct optdesc opt_proxy_resolve;
23 extern const struct optdesc opt_proxy_authorization;
24 extern const struct optdesc opt_proxy_authorization_file;
26 extern const struct addrdesc xioaddr_proxy_connect;
28 extern int _xioopen_proxy_prepare(struct proxyvars *proxyvars, struct opt *opts, const char *targetname, const char *targetport, const int ai_flags[2]);
29 int _xioopen_proxy_connect(struct single *xfd,
30 struct proxyvars *proxyvars,
31 int level);
33 #endif /* !defined(__xio_proxy_h_included) */