/Chatroom

A server-client multithreaded chat application supporting file transfer

Primary LanguageJavaMIT LicenseMIT

Chatroom

A server-client multithreaded chat application supporting file transfer submitted as course work for the course Computer Networks CNT 5106C Fall 2016.

Usage guide

The server starts on the default port 2222. To start it on a different port, type

java Server <portnumber>

java Client localhost <portnumber> to connect to the server.

Message passing

1.To broadcast

broadcast <message> without '<>'

2.To unicast

unicast @clientname <message>

3.To blockcast

blockcast @clientname <message>

File transfer

1.To broadcast

file broadcast <filepath> without '<>' (make sure the file exists and the path is correct to avoid unexpected behaviour)

2.To unicast

file unicast @clientname <filepath>

License

This project is licensed under the MIT License.