1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00
amp/examples
Douglas G.R 4092730b74 Asyncronously read from client and broadcast to others.
echo server example (run in terminal):
  - start the service
  php 007_broadcast_server.php

  - Connect to 127.0.0.1 at port 1337 from various terminals;
  nc 127.0.0.1 1337

  - Type in anything and press ENTER; Reactor will asyncronously read
    from client and broadcast to others.
2014-12-26 17:59:51 -02:00
..
001_basic_run_func.php Migrate repo to amphp/amp 2014-09-23 00:06:03 -04:00
002_basic_run_obj.php Should use Amp\run directly instead of Amp\getReactor()->run. 2014-12-26 15:41:25 -02:00
003_scheduling_func.php Migrate repo to amphp/amp 2014-09-23 00:06:03 -04:00
004_scheduling_obj.php Should use Amp\run directly instead of Amp\getReactor()->run. 2014-12-26 15:41:25 -02:00
005_tcp_server_obj.php Fix all deprecated warnings in examples. 2014-12-26 15:29:51 -02:00
006_libuv_signal_handling.php Fix all deprecated warnings in examples. 2014-12-26 15:29:51 -02:00
007_broadcast_server.php Asyncronously read from client and broadcast to others. 2014-12-26 17:59:51 -02:00