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.
42 lines
509 B
42 lines
509 B
#pragma once
|
|
|
|
#define VERSION 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;
|
|
};
|
|
|
|
#pragma pack()
|
|
|