#34706 [Asn->Csd]: Confusing socket_bind() documentation
| From: | simp@php.net | Date: | Sun, 02 Oct 2005 14:51:12 +0000 |
| Subject: | #34706 [Asn->Csd]: Confusing socket_bind() documentation | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370394@lists.php.net to get a copy of this message | ||
ID: 34706
Updated by: simp@php.net
Reported By: garmoan at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
Assigned To: simp
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Binds the name given in address to the socket described by socket. This
has to be done before a connection can be established using
socket_connect or socket_listen.
Previous Comments:
------------------------------------------------------------------------
[2005-10-02 15:34:12] simp@php.net
Actually that's not what the function does. It assigns the address and
port to a unbound socket.
Opening the connection is still left for socket_listen or
socket_connect.
------------------------------------------------------------------------
[2005-10-02 15:09:41] garmoan at gmail dot com
Description:
------------
As suggested by aidan to do...
The socket_bind() documentation could do with a couple extra lines to
explain what it actually does.
i.e. socket_bind(), in terms of AF_INET, opens the port on the
specified address, and in terms of AF_UNIX, creates the *.sock file for
inter-process communication.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34706&edit=1