Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 583 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 583 Bytes

ClientServerStream

Architecture

The server will listen for socket connections on localhost:9989.

Server

Sets up a Server that serves the contents of a file called "islands_in_the_stream.txt".

Client

Client will connect to the server and transform the contents to a bag of words, counting the occurrence of every word and display the words with the most occurrence.

Running the Server

$ cd src/
$ cp ../islands_in_the_stream .
$ javac Server.java && java Server .

Running the Client

$ cd src/
$ javac Client.java && java Client .