summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2025-05-16 15:04:48 +1000
committerDamien George <damien@micropython.org>2025-06-03 12:52:06 +1000
commit0b224048ef1cf448cfae18cde91ed42c6b7838f0 (patch)
tree5410f5ae91d65a2e57fdb376aaaa0d94654eaa69
parent4781cde4f78ca386c99bb63cb1ad238f8aff7731 (diff)
unix/modsocket: Expose MSG_PEEK flag for recv & recvfrom.
This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-rw-r--r--ports/unix/modsocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/unix/modsocket.c b/ports/unix/modsocket.c
index 6d6059ae4..2aaa21183 100644
--- a/ports/unix/modsocket.c
+++ b/ports/unix/modsocket.c
@@ -701,6 +701,7 @@ static const mp_rom_map_elem_t mp_module_socket_globals_table[] = {
C(MSG_DONTROUTE),
C(MSG_DONTWAIT),
+ C(MSG_PEEK),
C(SOL_SOCKET),
C(SO_BROADCAST),