sendFile - rsanchez-wsu/jfiles GitHub Wiki
Scope: public
Return: void
- @param String file - the path to the file on the server that is to be sent
- @param Socket servSock - the Socket object with the active Server connection
When the server receives the command "FILE" from the client, this method is called from the switch-statement under the respective case. It sends the file line-by-line over the connection to the client side, and the lines are processed into a new file using the client's fileCommand method. getFile also generates and sends a checksum for the file.