note 22459 added to function.socket-set-option
| From: | php-general at lists dot php dot net | Date: | Wed, 19 Jun 2002 02:35:33 +0000 |
| Subject: | note 22459 added to function.socket-set-option | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31997@lists.php.net to get a copy of this message | ||
Example:
I am not sure if the fourth argument (optval) is used in SO_REUSEADDR ... I don't think it
is... In that case, this is how you set your socket re-usable:
socket_set_option($socket,SOL_SOCKET,SO_REUSEADDR,1);
--
http://www.php.net/manual/en/function.socket-set-option.php
http://master.php.net/manage/user-notes.php?action=edit+22459
http://master.php.net/manage/user-notes.php?action=delete+22459
http://master.php.net/manage/user-notes.php?action=reject+22459