|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Client
Note: This class must be compiled and run with Java version 1.4 or later.
This class reproduces a denial of service attack by sending urgent data. It connects to a server on the specified host and port and then exchanges messages with the server, checking that each message returned is identical to the one sent. Each message sent is followed by an urgent data byte. Invoke this program from the command line with:
java Client [-h host] [-p port] [-n number] [-c count] [-v]
where:
-h host-p port-n number-c count-v
Server| Method Summary | |
static void |
main(java.lang.String[] args)
Reads the command arguments and starts the test. |
void |
run()
The body of the client test. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void run()
run in interface java.lang.Runnable
public static void main(java.lang.String[] args)
throws java.io.IOException
args - the command line arguments.
java.io.IOException - when an error occurs creating the
connection to the server.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||