summaryrefslogtreecommitdiffstats
path: root/test/Test.vala
blob: 2861233bce06b1e928320f5c2cf886c5bfbcde5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace Eva {
  class Test {
    public static int main(string[] args) {
      // MainLoop main = new MainLoop();
      
      // PacketHandler handler = new 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();
      PacketHandler handler = new PacketHandler(new UnixInputStream(1, true), new UnixOutputStream(2, true), 4);
      handler.send(new Atom("foo"));
      
      return 0;
    }
  }
}