Initial revision
[citadel.git] / ctdlphp / ctdlprotocol.php
1 <?PHP
2
3 function test_for_echo() {
4
5         global $clientsocket, $session;
6
7         $command = "ECHO Video vertigo ... test for echo.\n";
8
9         echo "Trying echo ... session name is ", $session, "<BR>\n";
10         flush();
11         echo "Writing...<BR>\n";
12         flush();
13         fwrite($clientsocket, $command, strlen($command));
14         echo "Reading...<BR>\n";
15         flush();
16         $response = fgets($clientsocket, 4096);
17         echo $response, "<BR>";
18         flush();
19 }
20
21 ?>