Resource Types
Examples
Sockets
PHP Manual

# Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

`AF_UNIX` (integer)
`AF_INET` (integer)
`AF_INET6` (integer)
`SOCK_STREAM` (integer)
`SOCK_DGRAM` (integer)
`SOCK_RAW` (integer)
`SOCK_SEQPACKET` (integer)
`SOCK_RDM` (integer)
`MSG_OOB` (integer)
`MSG_WAITALL` (integer)
`MSG_PEEK` (integer)
`MSG_DONTROUTE` (integer)
`MSG_EOR` (integer)
`MSG_EOF` (integer)
`SO_DEBUG` (integer)
`SO_REUSEADDR` (integer)
`SO_KEEPALIVE` (integer)
`SO_DONTROUTE` (integer)
`SO_LINGER` (integer)
`SO_BROADCAST` (integer)
`SO_OOBINLINE` (integer)
`SO_SNDBUF` (integer)
`SO_RCVBUF` (integer)
`SO_SNDLOWAT` (integer)
`SO_RCVLOWAT` (integer)
`SO_SNDTIMEO` (integer)
`SO_RCVTIMEO` (integer)
`SO_TYPE` (integer)
`SO_ERROR` (integer)
`SOL_SOCKET` (integer)
`PHP_NORMAL_READ` (integer)
`PHP_BINARY_READ` (integer)
`SOL_TCP` (integer)
`SOL_UDP` (integer)

Resource Types
Examples
Sockets
PHP Manual