- The server starts and waits for filename.
- The client sends a filename.
- The server receives filename. If file is present,server starts reading file and continues to send buffer filled with file contents encrypted until file end is reached.
- End is marked by EOF.
- File is received as buffer until EOF is received, Then it is decrypted
- If the file is not present, then file not found is sent to the Server.