From 3c4d6f7d2b142f136ff841fda54c4baaf690f9c5 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 16 Jun 2016 14:51:00 -0400 Subject: nt_socket.h: add afd bind (port-sharing) constants. --- include/ntapi/nt_socket.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/ntapi/nt_socket.h') diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h index 68a26b1..95f59e1 100644 --- a/include/ntapi/nt_socket.h +++ b/include/ntapi/nt_socket.h @@ -240,6 +240,12 @@ #define NT_AFD_DISCONNECT_WR (0x01u) #define NT_AFD_DISCONNECT_RD (0x02u) +/* afd socket share bits */ +#define NT_AFD_SHARE_UNIQUE (0x00u) +#define NT_AFD_SHARE_REUSE (0x01u) +#define NT_AFD_SHARE_WILDCARD (0x02u) +#define NT_AFD_SHARE_EXCLUSIVE (0x03u) + /* send, sendto, sendmsg: *nix flags and bit place-holders */ #define NT_MSG_OOB (0x00000001u) #define NT_MSG_PEEK (0x00000002u) -- cgit v1.2.3