Class PingRequest
java.lang.Object
PingRequest
public class PingRequest
- extends java.lang.Object
Class that stores information about a Ping request that was sent
Constructor Summary |
PingRequest(int destAddr,
byte[] msg,
long timeSent)
Initialize member variables |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PingRequest
public PingRequest(int destAddr,
byte[] msg,
long timeSent)
- Initialize member variables
- Parameters:
destAddr
- The address of the destination hostmsg
- The message that was senttimeSent
- The time that the ping was sent
getDestAddr
public int getDestAddr()
- Returns:
- The address of the destination host
getMsg
public byte[] getMsg()
- Returns:
- The message that was sent in the Ping
getTimeSent
public long getTimeSent()
- Returns:
- The time that the ping was sent
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- String representation