Browse Source

devicechannel: send using instances of Packet

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

+ 2
- 2
src/devicechannel.vala View File

@ -66,8 +66,8 @@ class DeviceChannel : Object {
connected();
}
public async void send(string message) {
string to_send = message + "\n";
public async void send(Packet pkt) {
string to_send = pkt.to_string() + "\n";
debug("send data: %s", to_send);
// _dout.put_string(data);
yield _conn.output_stream.write_async(to_send.data);


Loading…
Cancel
Save