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.
 
 
 
 
 
 

43 lines
495 B

#ifndef _SOCKS5_H
#define _SOCKS5_H
#define SVERSION 0x05
#define CONNECT 0x01
#define IPV4 0x01
#define DOMAIN 0x03
#define IPV6 0x04
#define CMD_NOT_SUPPORTED 0x07
#pragma pack(1)
struct method_select_request
{
char ver;
char nmethods;
char methods[255];
};
struct method_select_response
{
char ver;
char method;
};
struct socks5_request
{
char ver;
char cmd;
char rsv;
char atyp;
};
struct socks5_response
{
char ver;
char rep;
char rsv;
char atyp;
};
#endif //_SOCKS5_H