From c0b76ea046b221cafdc183a2a79d31ff9400ed19 Mon Sep 17 00:00:00 2001 From: paulr Date: Fri, 18 Mar 2011 03:49:05 +1100 Subject: [PATCH] some stuff to do with things. --- doc/README | 2 + lib/interComms.php | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/lib.php | 7 ++++++ 3 files changed, 67 insertions(+), 0 deletions(-) create mode 100644 lib/interComms.php diff --git a/doc/README b/doc/README index afc59e1..63b34be 100644 --- a/doc/README +++ b/doc/README @@ -27,6 +27,8 @@ must: - fw to fw connectivity for central mgt - basic routing - ipv6 + ipv4 +- routing protocols? +- vrf via lxc? nice: - HA would be nice diff --git a/lib/interComms.php b/lib/interComms.php new file mode 100644 index 0000000..52d874d --- /dev/null +++ b/lib/interComms.php @@ -0,0 +1,58 @@ +amserver) { + + } + } + + function serverLoop() + { + + } + + function sendMessage() + { + + } + + function receiveMessage() + { + + } + + + + private $server; + private $encrypt; + private $semKey; + private $amserver; + private $socket; + private $socket_ssl; + +} + +/* packets look like + * PEN:base64_enoded data:INE + * + * + */ + +?> \ No newline at end of file diff --git a/lib/lib.php b/lib/lib.php index 9df80fb..63c697a 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -16,4 +16,11 @@ if(is_dir("$basedir/plugins")) { } else { echo "No plugins dir ($basedir/plugins), continuing without\n"; } + +$storeLocation = "$basedir/../store/"; +global $storeLocation; + +if(!isdir($storeLocation)) { + mkdir($storeLocation, 0770); +} ?> \ No newline at end of file -- 1.7.0.4