Browse Source

devicechannel: use instance of Crypt

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
f40049684f
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/devicechannel.vala

+ 6
- 2
src/devicechannel.vala View File

@ -18,6 +18,8 @@
* Maciek Borzecki <maciek.borzecki (at] gmail.com>
*/
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() {


Loading…
Cancel
Save