From f40049684fd1ddc42ab348eb1c8fcf321b6ffb36 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sat, 17 Jan 2015 16:05:03 +0100 Subject: [PATCH] devicechannel: use instance of Crypt --- src/devicechannel.vala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/devicechannel.vala b/src/devicechannel.vala index 2016626..1482a8a 100644 --- a/src/devicechannel.vala +++ b/src/devicechannel.vala @@ -18,6 +18,8 @@ * Maciek Borzecki */ +using MConn; + /** * Device communication channel * @@ -33,10 +35,12 @@ class DeviceChannel : Object { private DataOutputStream _dout = null; private DataInputStream _din = null; - public signal void data_received(string data); + // channel encryption method + private Crypt _crypt = null; - public DeviceChannel(InetAddress host, uint port) { + public DeviceChannel(InetAddress host, uint port, Crypt crypt) { _isa = new InetSocketAddress(host, (uint16) port); + _crypt = crypt; } public async void open() {