Sunday, February 1, 2015

Please help me out with the code


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


Hello


5 bytes received by server


Good Morning


17 bytes received by server


(continue ....)


FIN


Total 700 bytes received by server


Please help me out with the code ?



No comments:

Post a Comment