下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
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)
SO_DEBUG
(int)
SO_REUSEADDR
(int)
SO_REUSEPORT
(int)
SO_REUSEPORT
socket 选项的平台上可用:这包括
macOS 和 FreeBSD,但不包括 Linux 和 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)
TCP_NODELAY
(int)
SO_MARK
(int)
SO_ACCEPTFILTER
(string)
SO_DONTTRUNC
(int)
SO_WANTMORE
(int)
TCP_DEFER_ACCEPT
(int)
SOL_SOCKET
(int)
PHP_NORMAL_READ
(int)
PHP_BINARY_READ
(int)
SOL_TCP
(int)
SOL_UDP
(int)
以下常量在Windows和类UNIX平台上被定义。每个常量只有在平台上有该常量值的时候才会被定义。
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)
以下常量只能在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)
以下常量仅适用于类UNIX。 每个常量只有在该平台上此值可用时被定义。
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)