|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mpisws.p2p.testing.transportlayer.TLTest<java.net.InetSocketAddress>
org.mpisws.p2p.testing.transportlayer.WireTest
org.mpisws.p2p.testing.transportlayer.MagicNumberTest
public class MagicNumberTest
| Field Summary | |
|---|---|
static byte[] |
BAD_HDR
Goes to Carol |
static byte[] |
GOOD_HDR
Goes to Alice/Bob |
static byte[] |
NO_HDR
Goes to Dave |
| Constructor Summary | |
|---|---|
MagicNumberTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static void |
setUpBeforeClass()
|
void |
stallTCP()
3 parts: - Dave opens a TCP socket to Bob but withholds the HEADER - Bob closes the Socket |
void |
wrongHeaderTCP()
3 parts: - Alice opens a TCP socket to Bob - Alice sends to Bob - Alice closes the Socket |
void |
wrongHeaderUDP()
Sends udp message from alice to carol, should fail. |
| Methods inherited from class org.mpisws.p2p.testing.transportlayer.WireTest |
|---|
bogus, getBogusIdentifier |
| Methods inherited from class org.mpisws.p2p.testing.transportlayer.TLTest |
|---|
getIdentifier, messageTooBigUDP, noCallbackTest, openTCP, sendUDP, tearDownAfterClass, testSocketThreadSafety |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] GOOD_HDR
public static final byte[] BAD_HDR
public static final byte[] NO_HDR
| Constructor Detail |
|---|
public MagicNumberTest()
| Method Detail |
|---|
public static void setUpBeforeClass()
throws java.lang.Exception
java.lang.Exception
public void wrongHeaderTCP()
throws java.lang.Exception
java.lang.Exception
public void stallTCP()
throws java.lang.Exception
java.lang.Exception
public void wrongHeaderUDP()
throws java.lang.Throwable
java.lang.Throwable
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||