From 14fc4d4708c2f7facd7c2803a0d14c211ff4c673 Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Wed, 13 Feb 2002 21:53:10 +0000 Subject: [PATCH] Fixed fsockopen()'s argument list & explanation--it looked like 'udp://' was intended to be part of the argument name, not the argument contents. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70192 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/network.xml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/functions/network.xml b/functions/network.xml index 3e2cb00ca3..705a7f3451 100644 --- a/functions/network.xml +++ b/functions/network.xml @@ -1,5 +1,5 @@ - + Network Functions Network @@ -139,7 +139,7 @@ Description intfsockopen - stringudp://hostname + stringhostname intport interrno stringerrstr @@ -153,11 +153,12 @@ port. hostname may in this case be either a fully qualified domain name or an IP address. For UDP connections, you need to explicitly specify the - protocol: udp://hostname. For the Unix - domain, hostname will be used as the path - to the socket, port must be set to 0 in - this case. The optional timeout can be - used to set a timeout in seconds for the connect system call. + protocol by prefixing hostname with + 'udp://'. For the Unix domain, + hostname will be used as the path to the + socket, port must be set to 0 in this + case. The optional timeout can be used to + set a timeout in seconds for the connect system call. fsockopen returns a file pointer which may @@ -171,13 +172,13 @@ errno and errstr arguments are present they will be set to indicate the actual system level error that occurred on the system-level - connect() call. If the returned errno is 0 and - the function returned &false;, it is an indication that the error - occurred before the connect() call. This is - most likely due to a problem initializing the socket. Note that - the errno and - errstr arguments must be passed by - reference. + connect() call. If the returned errno is + 0 and the function returned &false;, it is an + indication that the error occurred before the + connect() call. This is most likely due to a + problem initializing the socket. Note that the + errno and errstr + arguments must be passed by reference. Depending on the environment, the Unix domain or the optional