@@ -90,10 +90,10 @@ function socket_addrinfo_connect($address)
90
90
* a set of AddressInfo instances that we can bind to using socket_addrinfo_bind.
91
91
*
92
92
* @param string $host Hostname to search.
93
- * @param mixed $service The service to connect to. If service is a name , it is translated to the corresponding
94
- * port number .
93
+ * @param mixed $service The service to connect to. If service is a numeric string , it designates the port.
94
+ * Otherwise it designates a network service name, which is mapped to a port by the operating system .
95
95
* @param array $hints Hints provide criteria for selecting addresses returned. You may specify the
96
- * hints as defined by getadrinfo .
96
+ * hints as defined by getaddrinfo .
97
97
* @return resource[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
98
98
* On failure, FALSE is returned.
99
99
* @throws SocketsException
@@ -726,7 +726,7 @@ function socket_set_nonblock($socket): void
726
726
* @param resource $socket A Socket instance created with socket_create
727
727
* or socket_accept.
728
728
* @param int $level The level parameter specifies the protocol
729
- * level at which the option resides. For example, to retrieve options at
729
+ * level at which the option resides. For example, to set options at
730
730
* the socket level, a level parameter of
731
731
* SOL_SOCKET would be used. Other levels, such as
732
732
* TCP, can be used by specifying the protocol number of that level.
0 commit comments