From 2ade388e782a7ec11d050e7f194e38da356ba8d5 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 30 Nov 2007 10:31:43 +0000 Subject: [PATCH] Updated server&client git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7952 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/socket_server/client.php | 2 +- contrib/socket_server/server.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/contrib/socket_server/client.php b/contrib/socket_server/client.php index 89600670a..bdf01e26b 100755 --- a/contrib/socket_server/client.php +++ b/contrib/socket_server/client.php @@ -14,7 +14,7 @@ if($sock->connected()){ /* Prepare a hunge bunch of data to be send */ $data = "a"; - for($i = 0 ; $i < (1024 * 4); $i++){ + for($i = 0 ; $i < (1024 * 1); $i++){ $data .= "a"; } echo "|--Sending ".strlen($data)."bytes of data to socket.\n"; diff --git a/contrib/socket_server/server.php b/contrib/socket_server/server.php index 1c9a44b55..b6be26741 100755 --- a/contrib/socket_server/server.php +++ b/contrib/socket_server/server.php @@ -1,6 +1,8 @@ #!/usr/bin/php5 -q array('socket' => $socket)); -echo "\nServer startet on port : ".$port." +echo "\nServer startet on port : ".$bind_port." You may use telnet to connect to the server "; @@ -38,7 +40,7 @@ while(TRUE) { /* Create an array of sockets to read from */ $read[0] = $socket; for($i=1;$i