Class RDTTest

java.lang.Object
  extended by RDTTest

public class RDTTest
extends java.lang.Object

Class RDTTest defines a main method for running the network simulation using an RDTProtocol as a reliable data transfer protocol.


Field Summary
protected static TCPEntity receiver
           
protected static int segmentCount
          segmentCount is the number of segments to to send across the connection.
protected static TCPEntity sender
           
 
Constructor Summary
RDTTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main program tests an RDTProtocol by constructing two TCPEntities named "S" and "R", setting up a connection between them, and sending segmentCount segments from the "S" to "R".
static void testProtocol()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

segmentCount

protected static int segmentCount
segmentCount is the number of segments to to send across the connection.


sender

protected static TCPEntity sender

receiver

protected static TCPEntity receiver
Constructor Detail

RDTTest

public RDTTest()
Method Detail

testProtocol

public static void testProtocol()

main

public static void main(java.lang.String[] args)
The main program tests an RDTProtocol by constructing two TCPEntities named "S" and "R", setting up a connection between them, and sending segmentCount segments from the "S" to "R". Results are recorded by the Logger class.