Second assignment solution
It might not be the cleanest approach but I try to keep the line count low. You may download this server code that performs as required on the assignment#2 text.
What you may find weird is the fact that a timeout message is printed every 10 seconds when an upload is not taking place (therefore block number is zero). If you do not like this you can add an "if" sentence not to print that unless block number is larger than zero, but for me it serves as a sign that the server is up and running even when a file is not being received.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment