blob: 86907eaf00f62b2c73e5175a4531229f605e7adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
namespace Eva {
class Test {
public static int main(string[] args) {
MainLoop main = new MainLoop();
Eva.PacketHandler handler = new Eva.PacketHandler(new UnixInputStream(3, true), new UnixOutputStream(4, true), 4);
handler.received_term.connect((term) => {stdout.printf("Received term %s\n", term.to_string()); handler.send(term); main.quit();});
handler.start();
main.run();
return 0;
}
}
}
|