|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--RandTraces
This class gets the result of a remote traceroute and shows it on stdout. Calling the constructor runs the traceroute. After I get good at it, there will be methods to ask for the ping time, hop count, delay variance, and (if I get really ambitious) list of AS Numbers traversed. The inputs are source = the remote node performing the traceroute, dest = the name of the target of the traceroute. cmd = the URL snippet that asks the server to run traceroute.
Constructor Summary | |
RandTraces(java.lang.String source,
java.lang.String cmd,
java.lang.String dest)
construct a traceroute from source to dest. |
Method Summary | |
static void |
main(java.lang.String[] args)
test the GetTraces features. |
boolean |
receiveTraceInfo(int tracingAS,
java.io.BufferedReader in,
int ultimateAS)
reads the result of the HTTP GET line by line, looking for anytbing that looks like a traceroute. |
void |
runTrace()
opens a socket to the trace host and ask for a traceroute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandTraces(java.lang.String source, java.lang.String cmd, java.lang.String dest)
Method Detail |
public void runTrace()
public boolean receiveTraceInfo(int tracingAS, java.io.BufferedReader in, int ultimateAS)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |