You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
921 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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 */
  4. #ifndef __xio_proxy_h_included
  5. #define __xio_proxy_h_included 1
  6. struct proxyvars {
  7. bool ignorecr;
  8. bool doresolve;
  9. char *authstring;
  10. char *targetaddr; /* name/address of host, in malloced string */
  11. uint16_t targetport;
  12. } ;
  13. extern const struct optdesc opt_proxyport;
  14. extern const struct optdesc opt_ignorecr;
  15. extern const struct optdesc opt_proxy_resolve;
  16. extern const struct optdesc opt_proxy_authorization;
  17. extern const struct addrdesc addr_proxy_connect;
  18. int _xioopen_proxy_prepare(struct proxyvars *proxyvars, struct opt *opts,
  19. const char *targetname, const char *targetport);
  20. int _xioopen_proxy_connect(struct single *xfd,
  21. struct proxyvars *proxyvars,
  22. int level);
  23. #endif /* !defined(__xio_proxy_h_included) */