MessageCollaborator c = new MessageCollaborator(argv[1], Integer.valueOf(argv[2]).intValue(), argv[0]); try { while (c.getIdentity() == null) {} c.broadcast("msg", "hello world"); } catch (IOException e) {} while (c != null) {}