diff --git a/README.md b/README.md index b087981..d34e7e5 100644 --- a/README.md +++ b/README.md @@ -104,10 +104,10 @@ outgoing unicast or multicast datagrams. It returns a [`SocketInterface`](#socke ```php $socket = $factory->createReceiver('224.10.20.30:4050'); -// report incoming multicast messages +// report incoming multicast messages $socket->on('message', function ($data, $remote) use ($socket) { echo 'Sending back ' . strlen($data) . ' bytes to ' . $remote . PHP_EOL; - + // send a unicast reply to the remote $socket->send($data, $remote); }); diff --git a/examples/dump-received.php b/examples/dump-received.php index efa2448..4b19ed9 100644 --- a/examples/dump-received.php +++ b/examples/dump-received.php @@ -8,7 +8,7 @@ require __DIR__ . '/../vendor/autoload.php'; $address = '224.10.20.30:12345'; // random test address -//$address = '239.255.255.250:1900'; // UPNP SSDP (simple service discovery protocol) +//$address = '239.255.255.250:1900'; // UPnP SSDP (simple service discovery protocol) // use either above default address or the one given as first argument to this script if (isset($argv[1])) { @@ -23,4 +23,3 @@ echo 'Received from ' . $remote . PHP_EOL; echo $hex->dump($data) . PHP_EOL; }); - diff --git a/examples/echo-received.php b/examples/echo-received.php index c13030c..76e2d43 100644 --- a/examples/echo-received.php +++ b/examples/echo-received.php @@ -8,7 +8,7 @@ require __DIR__ . '/../vendor/autoload.php'; $address = '224.10.20.30:12345'; // random test address -//$address = '239.255.255.250:1900'; // UPNP SSDP (simple service discovery protocol) +//$address = '239.255.255.250:1900'; // UPnP SSDP (simple service discovery protocol) // use either above default address or the one given as first argument to this script if (isset($argv[1])) { diff --git a/examples/ssdp.php b/examples/ssdp.php index b4d60b2..15dcd73 100644 --- a/examples/ssdp.php +++ b/examples/ssdp.php @@ -1,9 +1,10 @@ pause(); });