Assignment title: Java


Byte Counting Server : Write a server for a client. The client sends text messages to the server line by line.

For each line entered by the user on the client side, the server receives the line of message, calculates the number of bytes received so far, and sends

them back to the client. The client terminates the communication by

sending a single line with FIN. Write your server and client applications using TCP.

Your server should be able to serve multiple clients at the same time (multithreading server). On the client side, the command line interface of the program looks like:

Java client hostname 6066