From 3ec42cb4ba18f79e383b2e21920daf0dbd9b287a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 30 Nov 2007 07:36:51 +0000 Subject: [PATCH] Added some comments to socket server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7946 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/socket_server/server.php | 61 +++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 17 deletions(-) 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