Class Traces

java.lang.Object
  |
  +--Traces

public class Traces
extends java.lang.Object

This class gets the result of a local 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 dest = the name of the target of the traceroute.


Constructor Summary
Traces(java.lang.String dest)
          construct a traceroute to dest.
 
Method Summary
static void main(java.lang.String[] args)
          test the Traces features.
 boolean receiveTraceInfo(java.io.BufferedReader in)
          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

Traces

public Traces(java.lang.String dest)
construct a traceroute to dest.

Method Detail

runTrace

public void runTrace()
opens a socket to the trace host and ask for a traceroute.


receiveTraceInfo

public boolean receiveTraceInfo(java.io.BufferedReader in)
reads the result of the HTTP GET line by line, looking for anytbing that looks like a traceroute.


main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
test the Traces features.

java.io.IOException