|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRDTTest
public class RDTTest
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 |
---|
protected static int segmentCount
protected static TCPEntity sender
protected static TCPEntity receiver
Constructor Detail |
---|
public RDTTest()
Method Detail |
---|
public static void testProtocol()
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |