getFile - rsanchez-wsu/jfiles GitHub Wiki
Scope: public
Return: void
- @param String file - the name of the file being received
- @param Socket sock - the socket containing the active server connection
This method is responsible for handling the events that occur when the client wants to send a file to the server. By the operation on the client side is complete, the server has created a new file in the format of copy-file.txt. It then reads the lines sent over the socket by the client in a fashion similar to the client. The server also receives a checksum from the client and compares it with that of the checksum generated on the server end.