diff options
author | midipix <writeonce@midipix.org> | 2016-10-08 09:40:04 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-10-10 01:36:55 -0400 |
commit | 064d5f2e7012bdcfef47ca26a35ff466ed594378 (patch) | |
tree | 9633de12aa2e156ed4796488de1407db2ba07132 | |
parent | d1bfa70d96a8a3035d037e33e961337a793669d5 (diff) | |
download | ntapi-064d5f2e7012bdcfef47ca26a35ff466ed594378.tar.bz2 ntapi-064d5f2e7012bdcfef47ca26a35ff466ed594378.tar.xz |
nt_socket.h: added socket-level socket option constants.
-rw-r--r-- | include/ntapi/nt_socket.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h index f696f68..2c4d807 100644 --- a/include/ntapi/nt_socket.h +++ b/include/ntapi/nt_socket.h @@ -146,6 +146,32 @@ +/* afd socket-level socket options */ +#define NT_SO_DEBUG (0x0001) +#define NT_SO_ACCEPTCONN (0x0002) +#define NT_SO_REUSEADDR (0x0004) +#define NT_SO_KEEPALIVE (0x0008) +#define NT_SO_DONTROUTE (0x0010) +#define NT_SO_BROADCAST (0x0020) +#define NT_SO_USELOOPBACK (0x0040) +#define NT_SO_LINGER (0x0080) +#define NT_SO_OOBINLINE (0x0100) + +#define NT_SO_SNDBUF (0x1001) +#define NT_SO_RCVBUF (0x1002) +#define NT_SO_SNDLOWAT (0x1003) +#define NT_SO_RCVLOWAT (0x1004) +#define NT_SO_SNDTIMEO (0x1005) +#define NT_SO_RCVTIMEO (0x1006) +#define NT_SO_ERROR (0x1007) +#define NT_SO_TYPE (0x1008) + +#define NT_SO_GROUP_ID (0x2001) +#define NT_SO_GROUP_PRIORITY (0x2002) +#define NT_SO_MAX_MSG_SIZE (0x2003) + + + /* afd ipv6 socket options */ #define NT_IPV6_HOPOPTS 1 #define NT_IPV6_HDRINCL 2 |