version 1.7.3.0
[socat.git] / xio-proxy.h
blob05847a0eee20ac9a83bf81c82c54d4784396d4b7
1 /* source: xio-proxy.h */
2 /* Copyright Gerhard Rieger 2002-2006 */
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 bool doresolve;
12 char *authstring;
13 char *targetaddr; /* name/address of host, in malloced string */
14 uint16_t targetport;
15 } ;
17 extern const struct optdesc opt_proxyport;
18 extern const struct optdesc opt_ignorecr;
19 extern const struct optdesc opt_proxy_resolve;
20 extern const struct optdesc opt_proxy_authorization;
22 extern const struct addrdesc addr_proxy_connect;
24 int _xioopen_proxy_prepare(struct proxyvars *proxyvars, struct opt *opts,
25 const char *targetname, const char *targetport);
26 int _xioopen_proxy_connect(struct single *xfd,
27 struct proxyvars *proxyvars,
28 int level);
30 #endif /* !defined(__xio_proxy_h_included) */