added new communication methods

This commit is contained in:
kremsy committed 2015-06-23 21:20:44 +02:00
1 parent 6c1d0658fe
commit f9fd1ad90b
4 files changed
+180 -52

No files matched your search

@@ -272,6 +272,7 @@ class CommunicationManager implements CallbackListener {
//Encode, Encrypt and Send Response
$data = json_encode($data);
$data = openssl_encrypt($data, self::ENCRYPTION_METHOD, $password, OPENSSL_RAW_DATA, self::ENCRYPTION_IV);
$connection->write(strlen($data) . "\n" . $data);