Skip to content

Commit

Permalink
exposing few macOS socket options to give hints how to handle data,
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and ramsey committed Jun 22, 2021
1 parent fb70194 commit c4a005b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/sockets/sockets.c
Expand Up @@ -538,6 +538,12 @@ static PHP_MINIT_FUNCTION(sockets)
#endif
#ifdef SO_ACCEPTFILTER
REGISTER_LONG_CONSTANT("SO_ACCEPTFILTER", SO_ACCEPTFILTER, CONST_CS | CONST_PERSISTENT);
#endif
#ifdef SO_DONTTRUNC
REGISTER_LONG_CONSTANT("SO_DONTTRUNC", SO_DONTTRUNC, CONST_CS | CONST_PERSISTENT);
#endif
#ifdef SO_WANTMORE
REGISTER_LONG_CONSTANT("SO_WANTMORE", SO_WANTMORE, CONST_CS | CONST_PERSISTENT);
#endif
REGISTER_LONG_CONSTANT("SOL_SOCKET", SOL_SOCKET, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SOMAXCONN", SOMAXCONN, CONST_CS | CONST_PERSISTENT);
Expand Down

0 comments on commit c4a005b

Please sign in to comment.