|
@@ -86,9 +86,9 @@ public class SimplePacket extends Packet {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public String toString() {
|
|
public String toString() {
|
|
- String destName = destination == null ? "null" : destination.getOwner().getName();
|
|
|
|
- String srcName = source == null ? "null" : source.getOwner().getName();
|
|
|
|
-
|
|
|
|
|
|
+ String destName = destination == null ? "null" : (destination.getOwner().getName()+":"+destination.getPortNumber());
|
|
|
|
+ String srcName = source == null ? "null" : (source.getOwner().getName()+":"+source.getPortNumber());
|
|
|
|
+
|
|
return "[SimplePacket:" + payload + " time:" + timestamp + ";source:" + srcName + ";dest:"
|
|
return "[SimplePacket:" + payload + " time:" + timestamp + ";source:" + srcName + ";dest:"
|
|
+ destName + "]";
|
|
+ destName + "]";
|
|
}
|
|
}
|