net.i2p.router.tunnel
Class FragmentTest

java.lang.Object
  extended bynet.i2p.router.tunnel.FragmentTest

public class FragmentTest
extends java.lang.Object

Simple test to see if the fragmentation is working, testing the preprocessor, FragmentHandler, and FragmentedMessage operation.


Constructor Summary
FragmentTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void runDelayed()
          Send a fragmented message, except wait a while between each fragment, causing the defragmentation to fail (since the fragments will expire)
 void runMultiple()
          Send a message with two fragments through with no delay
 void runSingle()
          Send a message that fits inside a single fragment through
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentTest

public FragmentTest()
Method Detail

runSingle

public void runSingle()
Send a message that fits inside a single fragment through


runMultiple

public void runMultiple()
Send a message with two fragments through with no delay


runDelayed

public void runDelayed()
Send a fragmented message, except wait a while between each fragment, causing the defragmentation to fail (since the fragments will expire)


main

public static void main(java.lang.String[] args)