Rice Pastry API

org.mpisws.p2p.testing.transportlayer
Class WireSRTest

java.lang.Object
  extended by org.mpisws.p2p.testing.transportlayer.TLTest<SourceRoute<java.net.InetSocketAddress>>
      extended by org.mpisws.p2p.testing.transportlayer.WireSRTest

public class WireSRTest
extends TLTest<SourceRoute<java.net.InetSocketAddress>>


Field Summary
static byte[] GOOD_HDR
          Goes to Alice/Bob
 
Constructor Summary
WireSRTest()
           
 
Method Summary
 SourceRoute<java.net.InetSocketAddress> getBogusIdentifier(SourceRoute<java.net.InetSocketAddress> local)
          The identifer to a bogus node.
 SourceRoute getIdentifier(TransportLayer<SourceRoute<java.net.InetSocketAddress>,java.nio.ByteBuffer> a, TransportLayer<SourceRoute<java.net.InetSocketAddress>,java.nio.ByteBuffer> b)
          A's view of b
 void openTCP()
          3 parts: - Alice opens a TCP socket to Bob - Alice sends to Bob - Alice closes the Socket
 void sendUDP()
          Sends udp message from alice to bob.
static void setUpBeforeClass()
           
 
Methods inherited from class org.mpisws.p2p.testing.transportlayer.TLTest
messageTooBigUDP, noCallbackTest, tearDownAfterClass, testSocketThreadSafety
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GOOD_HDR

public static final byte[] GOOD_HDR
Goes to Alice/Bob

Constructor Detail

WireSRTest

public WireSRTest()
Method Detail

getIdentifier

public SourceRoute getIdentifier(TransportLayer<SourceRoute<java.net.InetSocketAddress>,java.nio.ByteBuffer> a,
                                 TransportLayer<SourceRoute<java.net.InetSocketAddress>,java.nio.ByteBuffer> b)
Description copied from class: TLTest
A's view of b

Overrides:
getIdentifier in class TLTest<SourceRoute<java.net.InetSocketAddress>>
Returns:
A's view of b

setUpBeforeClass

public static void setUpBeforeClass()
                             throws java.lang.Exception
Throws:
java.lang.Exception

openTCP

public void openTCP()
             throws java.lang.Exception
Description copied from class: TLTest
3 parts: - Alice opens a TCP socket to Bob - Alice sends to Bob - Alice closes the Socket

Overrides:
openTCP in class TLTest<SourceRoute<java.net.InetSocketAddress>>
Throws:
java.lang.Exception

sendUDP

public void sendUDP()
             throws java.lang.Exception
Description copied from class: TLTest
Sends udp message from alice to bob.

Overrides:
sendUDP in class TLTest<SourceRoute<java.net.InetSocketAddress>>
Throws:
java.lang.Exception

getBogusIdentifier

public SourceRoute<java.net.InetSocketAddress> getBogusIdentifier(SourceRoute<java.net.InetSocketAddress> local)
                                                           throws java.io.IOException
Description copied from class: TLTest
The identifer to a bogus node.

Specified by:
getBogusIdentifier in class TLTest<SourceRoute<java.net.InetSocketAddress>>
Returns:
Throws:
java.io.IOException

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection