Add support for IPV6_V6ONLY on sockets

This commit is contained in:
Bob Weinand 2015-11-06 21:41:51 +01:00
parent 049325ca96
commit 855bb36fd0
5 changed files with 28 additions and 3 deletions

View file

@ -106,9 +106,11 @@ typedef int php_socket_t;
# define SOCK_RECV_ERR -1
#endif
#define STREAM_SOCKOP_NONE 1 << 0
#define STREAM_SOCKOP_SO_REUSEPORT 1 << 1
#define STREAM_SOCKOP_SO_BROADCAST 1 << 2
#define STREAM_SOCKOP_NONE (1 << 0)
#define STREAM_SOCKOP_SO_REUSEPORT (1 << 1)
#define STREAM_SOCKOP_SO_BROADCAST (1 << 2)
#define STREAM_SOCKOP_IPV6_V6ONLY (1 << 3)
#define STREAM_SOCKOP_IPV6_V6ONLY_ENABLED (1 << 4)
/* uncomment this to debug poll(2) emulation on systems that have poll(2) */