note 31793 added to function.socket-bind
| From: | gasket at cekkent dot net | Date: | Sat, 03 May 2003 23:19:17 +0000 |
| Subject: | note 31793 added to function.socket-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47480@lists.php.net to get a copy of this message | ||
The aforementioned tidbit about using NULL to bind to all addresses did not work for me, as I would
receive an error about unknown address. Using a 0 worked for me:
socket_bind ($socket, 0, $port)
This also allows you to receive UDP broadcasts, which is what I had been trying to figure out.
--
http://www.php.net/manual/en/function.socket-bind.php
http://master.php.net/manage/user-notes.php?action=edit+31793
http://master.php.net/manage/user-notes.php?action=delete+31793
http://master.php.net/manage/user-notes.php?action=reject+31793