1 /* source: xio-socks.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_socks_h_included
6 #define __xio_socks_h_included 1
13 char userid
[1]; /* just to have access via this struct */
15 #define SIZEOF_STRUCT_SOCKS4 8
17 extern const struct optdesc opt_socksport
;
18 extern const struct optdesc opt_socksuser
;
20 extern const struct addrdesc addr_socks4_connect
;
21 extern const struct addrdesc addr_socks4a_connect
;
23 extern int _xioopen_socks4_prepare(const char *targetport
, struct opt
*opts
, char **socksport
, struct socks4
*sockhead
, size_t *headlen
);
25 _xioopen_socks4_connect0(struct single
*xfd
,
26 const char *hostname
, /* socks target host */
28 struct socks4
*sockhead
,
29 ssize_t
*headlen
, /* get available space,
32 extern int _xioopen_socks4_connect(struct single
*xfd
,
33 struct socks4
*sockhead
,
37 #endif /* !defined(__xio_socks_h_included) */