note 56856 added to ref.sockets

From: Date: Sat, 17 Sep 2005 01:31:28 +0000
Subject: note 56856 added to ref.sockets
Groups: php.notes 
Request: Send a blank email to php-notes+get-95314@lists.php.net to get a copy of this message
A multicast server can be written badly as follows: $bc_string = "Hello World!"; $sock = socket_create(AF_INET, SOCK_DGRAM, 0); $opt_ret = socket_set_option($sock, 1, 6, TRUE); $send_ret = socket_sendto($sock, $bc_string, strlen($bc_string), 0, '230.0.0.1', 4446); Checking the return types is needed, but this does allow for you to multicast from php code. ---- Manual Page -- http://www.php.net/manual/en/ref.sockets.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56856 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56856&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56856&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56856&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56856&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56856&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56856&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56856&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56856&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95314) next »