org.mpisws.p2p.testing.transportlayer
Class WireSRTest
java.lang.Object
org.mpisws.p2p.testing.transportlayer.TLTest<SourceRoute<java.net.InetSocketAddress>>
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GOOD_HDR
public static final byte[] GOOD_HDR
- Goes to Alice/Bob
WireSRTest
public WireSRTest()
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
Copyright © 2001-2005 - Rice Pastry.