From a75cfb0c3fbbcdd1bc37b719e4dfc78ae725dc40 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 7 Apr 2008 14:29:56 +0000 Subject: [PATCH] Removed socket server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10244 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/socket_server/client.php | 25 ----- gosa-core/contrib/socket_server/server.php | 117 --------------------- 2 files changed, 142 deletions(-) delete mode 100755 gosa-core/contrib/socket_server/client.php delete mode 100755 gosa-core/contrib/socket_server/server.php diff --git a/gosa-core/contrib/socket_server/client.php b/gosa-core/contrib/socket_server/client.php deleted file mode 100755 index a8ec84284..000000000 --- a/gosa-core/contrib/socket_server/client.php +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/php5 -q -setEncryptionKey("ferdinand_frost"); - -if($sock->connected()){ - /* Prepare a hunge bunch of data to be send */ - $data = "
ping
192.168.1.36:10001192.168.1.36:10000
"; - $sock->write($data); - - #$sock->setEncryptionKey("ferdinand_frost"); - - $answer = $sock->read(); - echo "$answer\n"; - $sock->close(); -}else{ - echo "... FAILED!\n"; -} - -?> diff --git a/gosa-core/contrib/socket_server/server.php b/gosa-core/contrib/socket_server/server.php deleted file mode 100755 index 8bf4265f1..000000000 --- a/gosa-core/contrib/socket_server/server.php +++ /dev/null @@ -1,117 +0,0 @@ -#!/usr/bin/php5 -q - array('socket' => $socket)); - -echo "\nServer startet on port : $bind_port\n"; - - -/* Open the cipher */ -$td = mcrypt_module_open('rijndael-128', '', 'cbc', ''); - -/* Create the IV and determine the keysize length */ -$iv = substr(md5('GONICUS GmbH'),0, mcrypt_enc_get_iv_size($td)); -$ks = mcrypt_enc_get_key_size($td); -echo "IV-Size: ".mcrypt_enc_get_iv_size($td)."\n"; - -/* Create key */ -$key = substr(md5('ferdinand_frost'), 0, $ks); -echo "Key: $key\n"; - -/* Intialize encryption */ -mcrypt_generic_init($td, $key, $iv); - -/* Accept connections till server is killed */ -while(TRUE) { - - /* Create an array of sockets to read from */ - $read[0] = $socket; - for($i=1;$i -- 2.30.2