1
0

socket.h 943 B

1234567891011121314151617181920212223242526272829303132333435
  1. #define SOCK_STREAM 2
  2. #define SOCK_DGRAM 1
  3. #define SOL_SOCKET 65535
  4. #define SO_DEBUG 1
  5. #define SO_REUSEADDR 0x0004
  6. #define SO_KEEPALIVE 0x0008
  7. #define SO_DONTROUTE 0x0010
  8. #define SO_BROADCAST 0x0020
  9. #define SO_LINGER 0x0080
  10. #define SO_OOBINLINE 0x0100
  11. #define SO_REUSEPORT 0x0200
  12. #define SO_SNDBUF 0x1001
  13. #define SO_RCVBUF 0x1002
  14. #define SO_SNDLOWAT 0x1003
  15. #define SO_RCVLOWAT 0x1004
  16. #define SO_RCVTIMEO 0x1006
  17. #define SO_SNDTIMEO 0x1005
  18. #define SO_ERROR 0x1007
  19. #define SO_TYPE 0x1008
  20. #define SO_ACCEPTCONN 0x1009
  21. #define SO_PROTOCOL 0x1028
  22. #define SO_DOMAIN 0x1029
  23. #define SO_NO_CHECK 11
  24. #define SO_PRIORITY 12
  25. #define SO_BSDCOMPAT 14
  26. #define SO_PASSCRED 17
  27. #define SO_PEERCRED 18
  28. #define SO_PEERSEC 30
  29. #define SO_SNDBUFFORCE 31
  30. #define SO_RCVBUFFORCE 33
  31. #define SOCK_NONBLOCK 0200
  32. #define SOCK_CLOEXEC 02000000