SO_DEBUG
Reports whether debugging information is being recorded.
SO_BROADCAST
Reports whether transmission of broadcast messages is supported.
SO_REUSEADDR
Reports whether local addresses can be reused.
SO_REUSEPORT
Reports whether local ports can be reused.
SO_KEEPALIVE
Reports whether connections are kept active with periodic transmission
of messages. If the connected socket fails to respond to these messages,
the connection is broken and processes writing to that socket are notified
with a SIGPIPE signal.
SO_LINGER
Reports whether the socket lingers on
If l_onoff is non-zero and
l_linger is zero, all the
unsent data will be discarded and RST (reset) is sent to the
peer in the case of a connection-oriented socket.
On the other hand, if l_onoff is
non-zero and l_linger is non-zero,
l_linger
elapses. If the socket is non-blocking,
l_onoff and
l_linger.
SO_OOBINLINE
Reports whether the socket leaves out-of-band data inline.
SO_SNDBUF
Reports the size of the send buffer.
SO_RCVBUF
Reports the size of the receive buffer.
SO_ERROR
Reports information about error status and clears it.
SO_TYPE
Reports the socket type (e.g.
SOCK_STREAM).
SO_DONTROUTE
Reports whether outgoing messages bypass the standard routing facilities.
SO_RCVLOWAT
Reports the minimum number of bytes to process for socket
input operations.
SO_RCVTIMEO
Reports the timeout value for input operations.
sec which is the seconds part on the timeout
value and usec which is the microsecond part
of the timeout value.
SO_SNDTIMEO
Reports the timeout value specifying the amount of time that an output
function blocks because flow control prevents data from being sent.
sec which is the seconds part on the timeout
value and usec which is the microsecond part
of the timeout value.
SO_SNDLOWAT
Reports the minimum number of bytes to process for socket output operations.
TCP_NODELAY
Reports whether the Nagle TCP algorithm is disabled.
MCAST_JOIN_GROUP
Joins a multicast group. (added in PHP 5.4)
"group", specifying
a "interface", specifying either an interface
number (type string with
the interface name, like "eth0".
0 can be specified to indicate the interface
should be selected using routing rules. (can only be used in
MCAST_LEAVE_GROUP
Leaves a multicast group. (added in PHP 5.4)
MCAST_JOIN_GROUP for
more information. (can only be used in
MCAST_BLOCK_SOURCE
Blocks packets arriving from a specific source to a specific
multicast group, which must have been previously joined.
(added in PHP 5.4)
MCAST_JOIN_GROUP, plus one extra key,
source, which maps to a
MCAST_UNBLOCK_SOURCE
Unblocks (start receiving again) packets arriving from a specific
source address to a specific multicast group, which must have been
previously joined. (added in PHP 5.4)
MCAST_BLOCK_SOURCE.
(can only be used in
MCAST_JOIN_SOURCE_GROUP
Receive packets destined to a specific multicast group whose source
address matches a specific value. (added in PHP 5.4)
MCAST_BLOCK_SOURCE.
(can only be used in
MCAST_LEAVE_SOURCE_GROUP
Stop receiving packets destined to a specific multicast group whose
soure address matches a specific value. (added in PHP 5.4)
MCAST_BLOCK_SOURCE.
(can only be used in
IP_MULTICAST_IF
The outgoing interface for IPv4 multicast packets.
(added in PHP 5.4)
Either eth0. The value 0 can be used to
indicate the routing table is to used in the interface selection.
The function socket_get_option() returns an
interface index.
Note that, unlike the C API, this option does NOT take an IP
address. This eliminates the interface difference between
IP_MULTICAST_IF and
IPV6_MULTICAST_IF.
IPV6_MULTICAST_IF
The outgoing interface for IPv6 multicast packets.
(added in PHP 5.4)
The same as IP_MULTICAST_IF.
IP_MULTICAST_LOOP
The multicast loopback policy for IPv4 packets, which
determines whether multicast packets sent by this socket also reach
receivers in the same host that have joined the same multicast group
on the outgoing interface used by this socket. This is the case by
default.
(added in PHP 5.4)
0 or
1). For
IPV6_MULTICAST_LOOP
Analogous to IP_MULTICAST_LOOP, but for IPv6.
(added in PHP 5.4)
IP_MULTICAST_LOOP.
IP_MULTICAST_TTL
The time-to-live of outgoing IPv4 multicast packets. This should be
a value between 0 (don't leave the interface) and 255. The default
value is 1 (only the local network is reached).
(added in PHP 5.4)
IPV6_MULTICAST_HOPS
Analogous to IP_MULTICAST_TTL, but for IPv6
packets. The value -1 is also accepted, meaning the route default
should be used.
(added in PHP 5.4)