示例#1
0
 public void addMessage(MixMessage mixMessage) {
   messagesToSend.put(mixMessage.getOwner(), mixMessage);
 }
示例#2
0
 private MixMessage createDummyMessage(AbstractClient owner, boolean isRequest) {
   NetworkNode source = isRequest ? owner : mix;
   NetworkNode destination = isRequest ? simulator.getDistantProxy() : owner;
   return MixMessage.getInstance(isRequest, source, destination, owner, Simulator.getNow(), true);
 }