Graph g = new MultiGraph("G",false,true);
g.display();
// - the receiver that waits for events
NetStreamReceiver net = new NetStreamReceiver("localhost",2001,false);
net.setUnpacker(new Base64Unpacker());
// - received events end up in the "default" pipe
ThreadProxyPipe pipe = net.getStream("default");
// - plug the pipe to the sink of the graph
pipe.addSink(g);