Binding which uses pid_bind function is required to receive data from network via UDP.
<?php
$pid = pid_bind($pid, $addr, $port);
?>
Argument $addr is an IP address and $port is port number to bind. When empty string("") is specified to the IP address, PHPoC assumes the value is the current local IP address.
※ Empty string ("") value is the only option for $addr argument of function bind.
<?php
$pid = pid_open("/mmap/udp0"); // open UDP
$port = 1470; // UDP port number
pid_bind($pid, "", $port); // binding
?>