Skip to content

Commit 9e3de41

Browse files
author
Sandy W
committed
changed README
1 parent f3f6874 commit 9e3de41

File tree

2 files changed

+35
-27
lines changed

2 files changed

+35
-27
lines changed

README

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
AUTHORS: Ikonija Bogojevic, Miguel Perez, Sandra Weber
2+
3+
DESCRIPTION
4+
5+
This is a simple client and server written in Java using the socket API. Both the client and server are multithreaded. The client can use multiple threads to simulate multiple simultanous connections to the server, which will create a new thread for every incoming connection.
6+
7+
8+
9+
Client
10+
--------
11+
12+
COMPILATION
13+
$ javac Client.java
14+
15+
USAGE
16+
$ java Client hostname
17+
18+
where hostname is the name of the machine the server is running on. If it is the same machine as the client, use localhost.
19+
20+
The client program offers the user a choice of UNIX commands to run on the server. After the user chooses a command, the client creates a thread which connects to the server and sends it the user's choice. The client will print the answer that it receives from the server (unless the client is in benchmark mode).
21+
22+
The client program can also open multiple simultaneous connections to the server. To do this, choose option 7, Benchmark, from the main menu. It will then prompt for which command to benchmark and how many connections to open. It will calculate and display an average response time for all connections.
23+
24+
25+
26+
Server
27+
--------
28+
29+
COMPILATION
30+
$ javac Server.java
31+
32+
USAGE
33+
$ java Server
34+
35+
This will make the server listen on port 15432 for incoming connections from client(s). The server listens for incoming connections in its main loop, and creates a new thread to handle every incoming connection. These threads run UNIX commands on the server machine and send their output to the client(s).

0 commit comments

Comments
 (0)