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.

38 lines
472 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. struct method_select_request
  9. {
  10. char ver;
  11. char nmethods;
  12. char methods[255];
  13. };
  14. struct method_select_response
  15. {
  16. char ver;
  17. char method;
  18. };
  19. struct socks5_request
  20. {
  21. char ver;
  22. char cmd;
  23. char rsv;
  24. char atyp;
  25. };
  26. struct socks5_response
  27. {
  28. char ver;
  29. char rep;
  30. char rsv;
  31. char atyp;
  32. };