Skip to content

Commit c4a005b

Browse files
devnexenramsey
authored andcommitted
exposing few macOS socket options to give hints how to handle data,
1 parent fb70194 commit c4a005b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/sockets/sockets.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,12 @@ static PHP_MINIT_FUNCTION(sockets)
538538
#endif
539539
#ifdef SO_ACCEPTFILTER
540540
REGISTER_LONG_CONSTANT("SO_ACCEPTFILTER", SO_ACCEPTFILTER, CONST_CS | CONST_PERSISTENT);
541+
#endif
542+
#ifdef SO_DONTTRUNC
543+
REGISTER_LONG_CONSTANT("SO_DONTTRUNC", SO_DONTTRUNC, CONST_CS | CONST_PERSISTENT);
544+
#endif
545+
#ifdef SO_WANTMORE
546+
REGISTER_LONG_CONSTANT("SO_WANTMORE", SO_WANTMORE, CONST_CS | CONST_PERSISTENT);
541547
#endif
542548
REGISTER_LONG_CONSTANT("SOL_SOCKET", SOL_SOCKET, CONST_CS | CONST_PERSISTENT);
543549
REGISTER_LONG_CONSTANT("SOMAXCONN", SOMAXCONN, CONST_CS | CONST_PERSISTENT);

0 commit comments

Comments
 (0)