Mercurial > hg > udpmsg3
comparison client/debugclient.php @ 2:7e342a0a3b74 draft default tip
Fixed UDP mode in hub
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sat, 04 May 2013 00:36:14 +0200 |
parents | 7f01316130e8 |
children |
comparison
equal
deleted
inserted
replaced
1:7f01316130e8 | 2:7e342a0a3b74 |
---|---|
22 | 22 |
23 The views and conclusions contained in the software and documentation are those of the | 23 The views and conclusions contained in the software and documentation are those of the |
24 authors and should not be interpreted as representing official policies, either expressed | 24 authors and should not be interpreted as representing official policies, either expressed |
25 or implied, of Ivo Smits.*/ | 25 or implied, of Ivo Smits.*/ |
26 | 26 |
27 $server = '127.0.0.1:15387'; | 27 if ($_SERVER['argc'] >= 2) $server = $_SERVER['argv'][1]; |
28 else $server = '127.0.0.1:15387'; | |
28 | 29 |
29 $socket = stream_socket_client('tcp://'.$server) or die("Could not create socket\n"); | 30 $socket = stream_socket_client('tcp://'.$server) or die("Could not create socket\n"); |
30 stream_set_timeout($socket, -1); | 31 stream_set_timeout($socket, -1); |
31 $buffer = ''; | 32 $buffer = ''; |
32 | 33 |