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

12 years ago
12 years ago
  1. #pragma once
  2. #define VERSION 0x05
  3. #define CONNECT 0x01
  4. #define IPV4 0x01
  5. #define DOMAIN 0x03
  6. #define IPV6 0x04
  7. #define CMD_NOT_SUPPORTED 0x07
  8. #pragma pack(1)
  9. struct method_select_request
  10. {
  11. char ver;
  12. char nmethods;
  13. char methods[255];
  14. };
  15. struct method_select_response
  16. {
  17. char ver;
  18. char method;
  19. };
  20. struct socks5_request
  21. {
  22. char ver;
  23. char cmd;
  24. char rsv;
  25. char atyp;
  26. };
  27. struct socks5_response
  28. {
  29. char ver;
  30. char rep;
  31. char rsv;
  32. char atyp;
  33. };
  34. #pragma pack()