nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* source: xio-socks.h */ |
2 | /* Copyright Gerhard Rieger 2001-2007 */ |
||
3 | /* Published under the GNU General Public License V.2, see file COPYING */ |
||
4 | |||
5 | #ifndef __xio_socks_h_included |
||
6 | #define __xio_socks_h_included 1 |
||
7 | |||
8 | #define SIZEOF_STRUCT_SOCKS4 sizeof(struct socks4head) |
||
9 | |||
10 | struct socks4request { |
||
11 | uint8_t version; |
||
12 | uint8_t action; |
||
13 | uint16_t port; |
||
14 | uint32_t dest; |
||
15 | char userid[1]; /* just to have access via this struct */ |
||
16 | } ; |
||
17 | |||
18 | extern const struct optdesc opt_socksport; |
||
19 | extern const struct optdesc opt_socksuser; |
||
20 | |||
21 | extern const union xioaddr_desc *xioaddrs_socks4_connect[]; |
||
22 | extern const union xioaddr_desc *xioaddrs_socks4a_connect[]; |
||
23 | |||
24 | extern int _xioopen_socks4_prepare(const char *targetport, struct opt *opts, char **socksport, struct socks4request *sockhead, size_t *headlen); |
||
25 | extern int |
||
26 | _xioopen_socks4_connect0(struct single *xfd, |
||
27 | const char *hostname, /* socks target host */ |
||
28 | int socks4a, |
||
29 | struct socks4request *sockhead, |
||
30 | ssize_t *headlen, /* get available space, |
||
31 | return used length*/ |
||
32 | int level); |
||
33 | extern int _xioopen_socks4_connect(struct single *xfd, |
||
34 | struct socks4request *sockhead, |
||
35 | size_t headlen, |
||
36 | int level); |
||
37 | |||
38 | #endif /* !defined(__xio_socks_h_included) */ |