const.go 809 B

1234567891011121314151617181920212223242526272829303132
  1. package common
  2. const (
  3. CONN_DATA_SEQ = "*#*" //Separator
  4. VERIFY_EER = "vkey"
  5. VERIFY_SUCCESS = "sucs"
  6. WORK_MAIN = "main"
  7. WORK_CHAN = "chan"
  8. WORK_CONFIG = "conf"
  9. WORK_REGISTER = "rgst"
  10. WORK_SECRET = "sert"
  11. WORK_P2P = "p2pm"
  12. WORK_P2P_VISITOR = "p2pv"
  13. WORK_P2P_PROVIDER = "p2pp"
  14. WORK_STATUS = "stus"
  15. RES_MSG = "msg0"
  16. RES_CLOSE = "clse"
  17. NEW_UDP_CONN = "udpc" //p2p udp conn
  18. NEW_TASK = "task"
  19. NEW_CONF = "conf"
  20. NEW_HOST = "host"
  21. CONN_TCP = "tcp"
  22. CONN_UDP = "udp"
  23. UnauthorizedBytes = `HTTP/1.1 401 Unauthorized
  24. Content-Type: text/plain; charset=utf-8
  25. WWW-Authenticate: Basic realm="easyProxy"
  26. 401 Unauthorized`
  27. ConnectionFailBytes = `HTTP/1.1 404 Not Found
  28. `
  29. )