#!/usr/bin/php5 -q
setEncryptionKey("secret-gosa-password");
if($sock->connected()){
/* Prepare a hunge bunch of data to be send */
#$data = "10.89.1.155:2008211:22:33:44:55";
#$data = " 10.89.1.155:2008300:1B:77:04:8A:6C 19700101000000 ";
$data = " 10.89.1.155:2008300:1B:77:04:8A:6C 20080102133900 ";
$sock->write($data);
#$sock->setEncryptionKey("ferdinand_frost");
$answer = $sock->read();
echo "$answer\n";
$sock->close();
}else{
echo "... FAILED!\n";
}
?>