From: hickert Date: Fri, 30 Nov 2007 07:36:51 +0000 (+0000) Subject: Added some comments to socket server X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3ec42cb4ba18f79e383b2e21920daf0dbd9b287a;p=gosa.git Added some comments to socket server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7946 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/socket_server/server.php b/contrib/socket_server/server.php index a96b65084..bbd94dcb3 100755 --- a/contrib/socket_server/server.php +++ b/contrib/socket_server/server.php @@ -1,11 +1,29 @@ #!/usr/bin/php5 -q array('socket' => $socket)); @@ -14,7 +32,10 @@ echo "\nServer startet on port : ".$port." You may use telnet to connect to the server "; +/* Accept connections till server is killed */ while(TRUE) { + + /* Create an array of sockets to read from */ $read[0] = $socket; for($i=1;$i