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
(int)
AF_INET
(int)
AF_INET6
(int)
SOCK_STREAM
(int)
SOCK_DGRAM
(int)
SOCK_RAW
(int)
SOCK_SEQPACKET
(int)
SOCK_RDM
(int)
MSG_OOB
(int)
MSG_WAITALL
(int)
MSG_PEEK
(int)
MSG_DONTROUTE
(int)
MSG_EOR
(int)
MSG_EOF
(int)
MSG_ZEROCOPY
(int)
SO_DEBUG
(int)
SO_REUSEADDR
(int)
SO_REUSEPORT
(int)
SO_REUSEPORT
socket option: this
includes Linux, macOS and *BSD, but does not include Windows.
SO_KEEPALIVE
(int)
SO_DONTROUTE
(int)
SO_LINGER
(int)
SO_BROADCAST
(int)
SO_OOBINLINE
(int)
SO_SNDBUF
(int)
SO_RCVBUF
(int)
SO_SNDLOWAT
(int)
SO_RCVLOWAT
(int)
SO_SNDTIMEO
(int)
SO_RCVTIMEO
(int)
SO_TYPE
(int)
SO_ERROR
(int)
SO_ZEROCOPY
(int)
TCP_NODELAY
(int)
TCP_KEEPCNT
(int)
TCP_KEEPIDLE
(int)
TCP_KEEPINTVL
(int)
TCP_KEEPALIVE
(int)
TCP_NOTSENT_LOWAT
(int)
SO_MARK
(int)
SO_RTABLE
(int)
SO_ACCEPTFILTER
(string)
SO_DONTTRUNC
(int)
SO_WANTMORE
(int)
SO_INCOMING_CPU
(int)
SO_MEMINFO
(int)
SO_BPF_EXTENSIONS
(int)
SO_SETFIB
(int)
SOL_FILTER
(int)
TCP_DEFER_ACCEPT
(int)
TCP_CONGESTION
(string)
SOL_SOCKET
(int)
PHP_NORMAL_READ
(int)
PHP_BINARY_READ
(int)
SOL_TCP
(int)
SOL_UDP
(int)
The following constants are defined under Windows and UNIX-like platforms. Each constant is only defined if their equal is available on the platform.
SOCKET_EINTR
(int)
SOCKET_EBADF
(int)
SOCKET_EACCES
(int)
SOCKET_EFAULT
(int)
SOCKET_EINVAL
(int)
SOCKET_EMFILE
(int)
SOCKET_ENAMETOOLONG
(int)
SOCKET_ENOTEMPTY
(int)
SOCKET_ELOOP
(int)
SOCKET_EWOULDBLOCK
(int)
SOCKET_EREMOTE
(int)
SOCKET_EUSERS
(int)
SOCKET_ENOTSOCK
(int)
SOCKET_EDESTADDRREQ
(int)
SOCKET_EMSGSIZE
(int)
SOCKET_EPROTOTYPE
(int)
SOCKET_EPROTONOSUPPORT
(int)
SOCKET_ESOCKTNOSUPPORT
(int)
SOCKET_EOPNOTSUPP
(int)
SOCKET_EPFNOSUPPORT
(int)
SOCKET_EAFNOSUPPORT
(int)
SOCKET_EADDRNOTAVAIL
(int)
SOCKET_ENETDOWN
(int)
SOCKET_ENETUNREACH
(int)
SOCKET_ENETRESET
(int)
SOCKET_ECONNABORTED
(int)
SOCKET_ECONNRESET
(int)
SOCKET_ENOBUFS
(int)
SOCKET_EISCONN
(int)
SOCKET_ENOTCONN
(int)
SOCKET_ESHUTDOWN
(int)
SOCKET_ETIMEDOUT
(int)
SOCKET_ECONNREFUSED
(int)
SOCKET_EHOSTDOWN
(int)
SOCKET_EHOSTUNREACH
(int)
SOCKET_EALREADY
(int)
SOCKET_EINPROGRESS
(int)
The following constants are only defined under Windows.
SOCKET_ENOPROTOOPT
(int)
SOCKET_EADDRINUSE
(int)
SOCKET_ETOOMYREFS
(int)
SOCKET_EPROCLIM
(int)
SOCKET_EDUOT
(int)
SOCKET_ESTALE
(int)
SOCKET_EDISCON
(int)
SOCKET_SYSNOTREADY
(int)
SOCKET_VERNOTSUPPORTED
(int)
SOCKET_NOTINITIALISED
(int)
SOCKET_HOST_NOT_FOUND
(int)
SOCKET_TRY_AGAIN
(int)
SOCKET_NO_RECOVERY
(int)
SOCKET_NO_DATA
(int)
SOCKET_NO_ADDRESS
(int)
The following constants are only available on UNIX-like platforms. Each constant is only defined if their equal is available on the platform.
SOCKET_EPERM
(int)
SOCKET_ENOENT
(int)
SOCKET_EIO
(int)
SOCKET_ENXIO
(int)
SOCKET_E2BIG
(int)
SOCKET_EAGAIN
(int)
SOCKET_ENOMEM
(int)
SOCKET_ENOTBLK
(int)
SOCKET_EBUSY
(int)
SOCKET_EEXIST
(int)
SOCKET_EXDEV
(int)
SOCKET_ENODEV
(int)
SOCKET_ENOTDIR
(int)
SOCKET_EISDIR
(int)
SOCKET_ENFILE
(int)
SOCKET_ENOTTY
(int)
SOCKET_ENOSPC
(int)
SOCKET_ESPIPE
(int)
SOCKET_EROFS
(int)
SOCKET_EMLINK
(int)
SOCKET_EPIPE
(int)
SOCKET_ENOLCK
(int)
SOCKET_ENOSYS
(int)
SOCKET_ENOMSG
(int)
SOCKET_EIDRM
(int)
SOCKET_ECHRNG
(int)
SOCKET_EL2NSYNC
(int)
SOCKET_EL3HLT
(int)
SOCKET_EL3RST
(int)
SOCKET_ELNRNG
(int)
SOCKET_EUNATCH
(int)
SOCKET_ENOCSI
(int)
SOCKET_EL2HLT
(int)
SOCKET_EBADE
(int)
SOCKET_EBADR
(int)
SOCKET_EXFULL
(int)
SOCKET_ENOANO
(int)
SOCKET_EBADRQC
(int)
SOCKET_EBADSLT
(int)
SOCKET_ENOSTR
(int)
SOCKET_ENODATA
(int)
SOCKET_ETIME
(int)
SOCKET_ENOSR
(int)
SOCKET_ENONET
(int)
SOCKET_ENOLINK
(int)
SOCKET_EADV
(int)
SOCKET_ESRMNT
(int)
SOCKET_ECOMM
(int)
SOCKET_EPROTO
(int)
SOCKET_EMULTIHOP
(int)
SOCKET_EBADMSG
(int)
SOCKET_ENOTUNIQ
(int)
SOCKET_EBADFD
(int)
SOCKET_EREMCHG
(int)
SOCKET_ERESTART
(int)
SOCKET_ESTRPIPE
(int)
SOCKET_EPROTOOPT
(int)
SOCKET_ADDRINUSE
(int)
SOCKET_ETOOMANYREFS
(int)
SOCKET_EISNAM
(int)
SOCKET_EREMOTEIO
(int)
SOCKET_EDQUOT
(int)
SOCKET_ENOMEDIUM
(int)
SOCKET_EMEDIUMTYPE
(int)
SCM_RIGHTS
(int)
SCM_CREDENTIALS
(int)
SCM_CREDS
(int)
SCM_CREDS2
(int)
LOCAL_CREDS
(int)
LOCAL_CREDS_PERSISTENT
(int)
SKF_AD_OFF
(int)
SKF_AD_PROTOCOL
(int)
SKF_AD_PKTTYPE
(int)
SKF_AD_IFINDEX
(int)
SKF_AD_NLATTR
(int)
SKF_AD_NLATTR_NEST
(int)
SKF_AD_MARK
(int)
SKF_AD_QUEUE
(int)
SKF_AD_HATYPE
(int)
SKF_AD_RXHASH
(int)
SKF_AD_CPU
(int)
SKF_AD_ALU_XOR_X
(int)
SKF_AD_VLAN_TAG
(int)
SKF_AD_VLAN_TAG_PRESENT
(int)
SKF_AD_PAY_OFFSET
(int)
SKF_AD_RANDOM
(int)
SKF_AD_VLAN_TPID
(int)
SKF_AD_MAX
(int)