summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-16 14:51:00 -0400
committermidipix <writeonce@midipix.org>2016-06-16 14:51:00 -0400
commit3c4d6f7d2b142f136ff841fda54c4baaf690f9c5 (patch)
tree728b942ce21d205ca33b9be384d61e419a06c684 /include
parent3260d19ee4f4441805c42a86d636518dacab3567 (diff)
downloadntapi-3c4d6f7d2b142f136ff841fda54c4baaf690f9c5.tar.bz2
ntapi-3c4d6f7d2b142f136ff841fda54c4baaf690f9c5.tar.xz
nt_socket.h: add afd bind (port-sharing) constants.
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_socket.h6
1 files changed, 6 insertions, 0 deletions
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)