|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Server
This class accepts socket connections on the specified port and echoes messages sent to it by clients. Invoke this program from the command line with:
java Server [-p port] [-v]
where:
-p port-v
Client| Method Summary | |
static void |
main(java.lang.String[] args)
Reads the command arguments and starts the test. |
void |
run()
The body of the server 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 client.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||