aboutsummaryrefslogtreecommitdiff
path: root/sockutils.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-10-19 10:27:04 -0700
committerGuy Harris <guy@alum.mit.edu>2018-10-19 10:27:04 -0700
commitd491c4d68d38902ce71fcceed49aeac1f574f533 (patch)
tree5fb8a5cb5552dfab10a03913392c522a194223ba /sockutils.h
parenta463e82f5f0152c3c0d7cf1ebfa56d9b099f7fee (diff)
Add a flag to allow peeking at messages in sock_recv().
It works like MSG_PEEK (because it causes MSG_PEEK to be set in the recv() flags).
Diffstat (limited to 'sockutils.h')
-rw-r--r--sockutils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sockutils.h b/sockutils.h
index d3299eaf..3102fcef 100644
--- a/sockutils.h
+++ b/sockutils.h
@@ -182,6 +182,8 @@ int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD,
#define SOCK_EOF_ISNT_ERROR 0x00000000 /* Return 0 on EOF */
#define SOCK_EOF_IS_ERROR 0x00000002 /* Return an error on EOF */
+#define SOCK_MSG_PEEK 0x00000004 /* Return data but leave it in the socket queue */
+
/*
* \}
*/