|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--info.jedi.net.DefaultPacketHandler | +--info.jedi.net.PingHandler
Field Summary | |
static int |
PING_HANDLER_NUMBER
The index that a PingHandler goes at in the MailDaemon |
Method Summary | |
boolean |
handlePacket(InputPacket packet)
Handles an incoming ping request. |
static void |
main(java.lang.String[] args)
Either acts as a ping server (if called with no arguments) or measures the time for 100 JEDI pings to that server (if called with the network address of that server). |
void |
ping(java.net.InetAddress address,
int port)
Pings a port on a given machine, waiting for a response before returning. |
Methods inherited from class info.jedi.net.DefaultPacketHandler |
handleError,
initializePacket,
sendPacket |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int PING_HANDLER_NUMBER
Method Detail |
public boolean handlePacket(InputPacket packet) throws java.io.IOException
public void ping(java.net.InetAddress address, int port) throws java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |