/** * 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; }
@Override public String toString() { return " from " + (from == null ? "unknown" : from.getId()); }