Class PingRequest

java.lang.Object
  extended byPingRequest

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
 
Method Summary
 int getDestAddr()
           
 byte[] getMsg()
           
 long getTimeSent()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PingRequest

public PingRequest(int destAddr,
                   byte[] msg,
                   long timeSent)
Initialize member variables

Parameters:
destAddr - The address of the destination host
msg - The message that was sent
timeSent - The time that the ping was sent
Method Detail

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()
Returns:
String representation