Data can be transferred between two computers using Socket programming in C.
Similarly, files can easily be sent using UDP protocol and a simple client/server.
Security : Handled by encryption.
Protocol : UDP
Encryption: XOR encryption
1. The server starts and waits for filename. 2. The client sends a filename. 3. The server receives filename. If file is present, server starts reading file and continues to send a buffer filled with file contents encrypted until file-end is reached. 4. End is marked by EOF. 5. File is received as buffers until EOF is received. Then it is decrypted. 6. If Not present, a file not found is sent.
The Server :
- Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
- Computer Network | File Transfer Protocol (FTP)
- Lex program to search a word in a file
- C Program to find size of a File
- Asynchronous serial data transfer
- C Program for Lower Case to Uppercase and vice-versa in a file
- Simple Mail Transfer Protocol (SMTP)
- Computer Network | Asynchronous Transfer Mode (ATM)
- Lex Program to print the total characters, white spaces, tabs in the given input file
- Basics of File Handling in C
- File opening modes(r versus r+)
- Sorting integer data from file and calculate execution time
- Lex code to replace a word with another word in a file
- C Program for Program to find area of a circle
- P2P(Peer To Peer) File Sharing
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.