Version 1.8.0.0
[socat.git] / xio-socks5.h
blob4dab76b2fe2fa07fbca6ae26833981505eeafcfe
1 /* source: xio-socks5.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_socks5_h_included
6 #define __xio_socks5_h_included 1
8 #if WITH_SOCKS5
10 struct socks5_client_hello {
11 uint8_t version;
12 uint8_t nmethods;
13 uint8_t methods[];
16 struct socks5_server_hello {
17 uint8_t version;
18 uint8_t method;
21 struct socks5_request {
22 uint8_t version;
23 uint8_t command;
24 uint8_t reserved;
25 uint8_t address_type;
26 char dstdata[];
29 struct socks5_reply {
30 uint8_t version;
31 uint8_t reply;
32 uint8_t reserved;
33 uint8_t address_type;
34 char dstdata[];
37 extern const struct addrdesc xioaddr_socks5_connect;
38 extern const struct addrdesc xioaddr_socks5_listen;
40 #endif /* WITH_SOCKS5 */
41 #endif /* !defined(__xio_socks5_h_included) */