define.go 334 B

12345678910111213141516
  1. package TcpServerLib
  2. const (
  3. MAX_RECEIVE_BUFFER_SIZE = 4012
  4. HEADER_SIZE = 4
  5. MAX_PACKET_SIZE = 1024
  6. )
  7. const (
  8. NET_ERROR_NONE = 0
  9. NET_ERROR_RECV_MAKE_PACKET_TOO_LARGE_PACKET_SIZE = 1
  10. )
  11. const (
  12. NET_CLOSE_REMOTE = 1
  13. NET_CLOSE_RECV_TOO_SMALL_RECV_DATA = 2
  14. )