#34706 [Opn]: Confusing socket_bind() documentation
| From: | simp@php.net | Date: | Sun, 02 Oct 2005 13:34:14 +0000 |
| Subject: | #34706 [Opn]: Confusing socket_bind() documentation | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969370391@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: Open
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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