File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ Among others, multicast networking is the basis for:
1212* HTTPU/HTTPMU (Multicast and Unicast UDP HTTP Messages)
1313* UPNP/SSDP (Univeral Plug and Play / Simple Service Discovery Protocol).
1414
15+ ** Table of Contents**
16+
17+ * [ Quickstart example] ( #quickstart-example )
18+ * [ Usage] ( #usage )
19+ * [ Factory] ( #factory )
20+ * [ createSender()] ( #createsender )
21+ * [ createReceiver()] ( #createreceiver )
22+ * [ Socket] ( #socket )
23+ * [ Install] ( #install )
24+ * [ License] ( #license )
25+
1526> Note: This project is in beta stage! Feel free to report any issues you encounter.
1627
1728## Quickstart example
@@ -76,7 +87,7 @@ $socket = $factory->createReceiver('224.10.20.30:4050');
7687$socket->on('message', function ($data, $remote) use ($socket) {
7788 echo 'Sending back ' . strlen($data) . ' bytes to ' . $remote . PHP_EOL;
7889
79- // send a unitcast reply to the remote
90+ // send a unicast reply to the remote
8091 $socket->send($data, $remote);
8192});
8293```
You can’t perform that action at this time.
0 commit comments