Example #1
0
  public void sendClearPanelMsg() {
    DrawCommand comm = new DrawCommand(DrawCommand.CLEAR);

    try {
      byte[] buf = Util.streamableToByteBuffer(comm);
      if (use_unicasts) sendToAll(buf);
      else channel.send(new Message(null, null, buf));
    } catch (Exception ex) {
      System.err.println(ex);
    }
  }
Example #2
0
 private void sendToAll(byte[] buf) throws Exception {
   for (Address mbr : members) {
     Message msg = new Message(mbr, null, buf);
     channel.send(msg);
   }
 }