diff --git a/reference/sockets/functions/socket-create-pair.xml b/reference/sockets/functions/socket-create-pair.xml index 0acd1b12d1..f4ff4b383e 100644 --- a/reference/sockets/functions/socket-create-pair.xml +++ b/reference/sockets/functions/socket-create-pair.xml @@ -1,5 +1,5 @@ - + socket_create_pair @@ -31,43 +31,9 @@ The domain parameter specifies the protocol - family to be used by the socket. + family to be used by the socket. See socket_create + for the full list. - - Available address/protocol families - - - - Domain - Description - - - - - AF_INET - - IPv4 Internet based protocols. TCP and UDP are common protocols of - this protocol family. Supported only in windows. - - - - AF_INET6 - - IPv6 Internet based protocols. TCP and UDP are common protocols of - this protocol family. Support added in PHP 5.0.0. - Supported only in windows. - - - - AF_UNIX - - Local communication protocol family. High efficiency and low - overhead make it a great form of IPC (Interprocess Communication). - - - - -
@@ -75,60 +41,9 @@ The type parameter selects the type of communication - to be used by the socket. + to be used by the socket. See socket_create for the + full list. - - Available socket types - - - - Type - Description - - - - - SOCK_STREAM - - Provides sequenced, reliable, full-duplex, connection-based byte streams. - An out-of-band data transmission mechanism may be supported. - The TCP protocol is based on this socket type. - - - - SOCK_DGRAM - - Supports datagrams (connectionless, unreliable messages of a fixed maximum length). - The UDP protocol is based on this socket type. - - - - SOCK_SEQPACKET - - Provides a sequenced, reliable, two-way connection-based data transmission path for - datagrams of fixed maximum length; a consumer is required to read an - entire packet with each read call. - - - - SOCK_RAW - - Provides raw network protocol access. This special type of socket - can be used to manually construct any type of protocol. A common use - for this socket type is to perform ICMP requests (like ping, - traceroute, etc). - - - - SOCK_RDM - - Provides a reliable datagram layer that does not guarantee ordering. - This is most likely not implemented on your operating system. - - - - -
@@ -143,55 +58,17 @@ SOL_TCP, and SOL_UDP can also be used. - - Common protocols - - - - Name - Description - - - - - icmp - - The Internet Control Message Protocol is used primarily by gateways - and hosts to report errors in datagram communication. The "ping" - command (present in most modern operating systems) is an example - application of ICMP. - - - - udp - - The User Datagram Protocol is a connectionless, unreliable, - protocol with fixed record lengths. Due to these aspects, UDP - requires a minimum amount of protocol overhead. - - - - tcp - - The Transmission Control Protocol is a reliable, connection based, - stream oriented, full duplex protocol. TCP guarantees that all data packets - will be received in the order in which they were sent. If any packet is somehow - lost during communication, TCP will automatically retransmit the packet until - the destination host acknowledges that packet. For reliability and performance - reasons, the TCP implementation itself decides the appropriate octet boundaries - of the underlying datagram communication layer. Therefore, TCP applications must - allow for the possibility of partial record transmission. - - - - -
+ + See socket_create for the full list of supported + protocols. +
fd + Reference to an array in which the two socket resources will be inserted.