-
Notifications
You must be signed in to change notification settings - Fork 9
sendFile
Swilloughby-github edited this page Dec 11, 2016
·
5 revisions
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.
- Home
- Course-Related Materials
- Development Environment
- Development Workflow
- Packages
- Guides
- Team Pages