An application using UDP protocol for transferring file between 2 machines Windows. This application use mechanism send-and-wait to ensure the integrity of the file.
SendFile.exe <target> --path=<path> --buffer-size=<size>
For example: SendFile.exe 192.168.110.164 --path=D:\Users\grey-btw\SendFile\Debug\2.txt --buffer-size=10000
RecvFile.exe --out=<out>
For example: RecvFile.exe --out=out.txt
I just developed mechanism send-and-wait
but it's not compatible for a long road in network (the segment can be dropped). So, I recommend some features for application in the future.
- Representation data in base64 (we can use any delimiter - I'm using character
,
as a delimiter) - Mechansim time out (integrity)
- Use cryptographic algorithms such as symmetric (RSA) or asymmetric (AES)
- Restrict the input and validate it before running into the program or in progress