Class ASPings

java.lang.Object
  |
  +--ASPings

public class ASPings
extends java.lang.Object

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
ASPings(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(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

ASPings

public ASPings(java.lang.String source,
               java.lang.String cmd,
               java.lang.String dest)
construct a traceroute from source 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 GetTraces features.

java.io.IOException