Lines Matching refs:s
11 $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP);
12 $br = socket_bind($s, '::', 3000);
16 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_JOIN_GROUP, array(
23 $r = socket_sendto($s, $m = "testing packet", strlen($m), 0, 'ff01::114', 3000);
27 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_LEAVE_GROUP, array(
32 $so = @socket_set_option($s, IPPROTO_IPV6, MCAST_JOIN_SOURCE_GROUP, array(
55 $s = socket_create($domain, SOCK_DGRAM, SOL_UDP) or die("err");
56 var_dump($s);
57 $br = socket_bind($s, '::0', 3000) or die("err");
60 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
68 checktimeout($s, 500);
69 $r = socket_recvfrom($s, $str, 2000, 0, $from, $fromPort);
77 checktimeout($s, 500);
78 while (($str = socket_read($s, 3000, 500)) !== FALSE) {
84 $so = socket_set_option($s, $level, MCAST_LEAVE_GROUP, array(
96 $so = socket_set_option($s, $level, MCAST_JOIN_GROUP, array(
119 string(%d) "%s"