diff --git a/reference/sockets/functions/socket-connect.xml b/reference/sockets/functions/socket-connect.xml index a587099537..27bb3f07ed 100644 --- a/reference/sockets/functions/socket-connect.xml +++ b/reference/sockets/functions/socket-connect.xml @@ -1,5 +1,5 @@ - + @@ -16,9 +16,9 @@ &warn.experimental.func; - Initiates a connection using the socket descriptor + Initiates a connection using the socket resource socket, which must be a valid socket - descriptor created with socket_create. + resource created with socket_create. The address parameter is either an IP @@ -35,15 +35,17 @@ should be made. - &return.success; This code may be passed to - socket_strerror to get a textual explanation - of the error. + &return.success; The error code can be retrieved with + socket_last_error. This code may be passed to + socket_strerror to get a textual explanation of the + error. See also socket_bind, socket_listen, - socket_create, and + socket_create, + socket_last_error and socket_strerror.