コード例 #1
0
 /**
  * Parameterized constructor for this class. Creates a message with the specified from and to
  * addresses
  *
  * @param from The NodeHandle of the sending node.
  * @param to The Pastry ID of the target node.
  */
 public NetInfDHTMessage(NodeHandle from, Id to) {
   this.from = from.getId();
   this.to = to;
 }
コード例 #2
0
 @Override
 public String toString() {
   return " from " + (from == null ? "unknown" : from.getId());
 }