final DataInputStream input = stub.getInputStream();
mainloop:
while (!Thread.currentThread().isInterrupted()) {
try {
GossipData msg = new GossipData();
msg.readFrom(input);
switch (msg.getType()) {
case GossipRouter.DISCONNECT_OK:
break mainloop;
case GossipRouter.MESSAGE:
byte[] data = msg.getBuffer();