Is it possible to create a program to transfer folders using UDP protocol?

Status
Not open for further replies.
Sep 9, 2018
5
0
10
Hi, i'm interest in sending files unidirectionally, i see that UDP can send data this way, but it's used only in sending video, my question is: Is it possible to create a program to send a folder in one computer and receive it on another computer. This folder is 10mb in size. If the answer is yes, so what book should i study to be able to create it? I know C, but only the basics. Thanks for answer
 
Solution


OK, UDP does not really care if the recipient actually gets the data.

But folders? With 'files'?
I'm struggling to find the use case for this.

And your 'question' is simply..."How do I write code?"

Find an application that does UDP data transfer. Deconstruct and reverse engineer it.
Some links for you:

https://www.keycdn.com/support/udp-file-transfer/

https://www.bizety.com/2016/02/03/open-source-udp-file-transfer-tool-comparison/

https://www.giac.org/paper/gsec/2848/unidirectional-networking/104817

In essence, UDP Transfer isn't for use in situations where packet loss is remotely (pun intended) likely. However, it seems that there are open source options available already to save you the hassle.

@Scottray - FTP is uses TCP (ports 20 & 21); not UDP.
 


It is "possible" to do a lot of things.

Sending unidirectionally, though...the receiver would have to authorize.
Otherwise, I could just send some junk to your PC and cause it to melt down.


What are you trying to do that any of the thousands of data transfer protocols and applications do not do?
 
1"What is sounds like you're describing is FTP - file transfer protocol. There's already lots of utilities available for FTP, including web browsers. "

FTP seems to be bidirectional, the passive computer receives data and transmit data too, so it's not what i need. I need it to only send data packets, and only receive on the passive computer

2- "In essence, UDP Transfer isn't for use in situations where packet loss is remotely (pun intended) likely. However, it seems that there are open source options available already to save you the hassle." -
I search in your links, but this only explain what UDP is, but how can i code a program to do this UDP file transfer?

3-It is "possible" to do a lot of things.
Sending unidirectionally, though...the receiver would have to authorize.
Otherwise, I could just send some junk to your PC and cause it to melt down.
What are you trying to do that any of the thousands of data transfer protocols and applications do not do?

Yes there must be 2 programs, 1 in the sender, and another in the receiver to analyse the packets. But how can i code these 2 programs in C, what book should i read to know how to do it?
What i'm trying to do is to send data unidirectionally, and in thousands of data transfer protocols that i searched, they don't do it, both client and server send and receive data
 


Even at the basic layer of data transfer, it is a two way conversation.

"Hey, I sent a packet"
'OK, I got it. Send another'
 
"Even at the basic layer of data transfer, it is a two way conversation.

"Hey, I sent a packet"
'OK, I got it. Send another' "

Not in UDP, UDP only sends data, the problem is how it's possible to create this program, i need someone to show me the right direction.
The client program should:
a- access the network card
b- convert the folder into packets
c- send them

and the receiver should:
a- access the network
b- read all the packets
c- recreate the packets and reconvert into the folder

The problem is how can i code all of this, what book should i read, or tutorial
 
How do you intend to ensure that the file arrives at the destination intact and without errors when using a one way protocol? UDP works just fine for such things as video, where a corrupted data packet merely results in some sparkles, or such. However, when transferring a data file that might contain crucial financial information or a program the files MUST arrive intact, without errors of any kind. UDP does not do this. Sounds like you haven't really thought this out.
 


OK, UDP does not really care if the recipient actually gets the data.

But folders? With 'files'?
I'm struggling to find the use case for this.

And your 'question' is simply..."How do I write code?"

Find an application that does UDP data transfer. Deconstruct and reverse engineer it.
 
Solution
"How do you intend to ensure that the file arrives at the destination intact and without errors when using a one way protocol? UDP works just fine for such things as video, where a corrupted data packet merely results in some sparkles, or such. However, when transferring a data file that might contain crucial financial information or a program the files MUST arrive intact, without errors of any kind. UDP does not do this. Sounds like you haven't really thought this out. "

The corruption of data is not a problem, the folder is only 1 mb size. So do you know how can i create this program?
 
OK, UDP does not really care if the recipient actually gets the data.

But folders? With 'files'?
"I'm struggling to find the use case for this.

And your 'question' is simply..."How do I write code?"

Find an application that does UDP data transfer. Deconstruct and reverse engineer it. "

Ok i'll try to find a program that already does this, maybe i'll have to pay someone to code it, thanks for your answers
 
Status
Not open for further replies.