From 007cec68816a70983d3fcefe0b0e2463ef0a201c Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Nov 2007 15:05:08 +0000 Subject: [PATCH] Added socket server for some FAI developments git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7944 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/socket_server/server.php | 79 ++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 contrib/socket_server/server.php diff --git a/contrib/socket_server/server.php b/contrib/socket_server/server.php new file mode 100755 index 000000000..a96b65084 --- /dev/null +++ b/contrib/socket_server/server.php @@ -0,0 +1,79 @@ +#!/usr/bin/php5 -q + array('socket' => $socket)); + +echo "\nServer startet on port : ".$port." +You may use telnet to connect to the server +"; + +while(TRUE) { + $read[0] = $socket; + for($i=1;$i -- 2.30.2