LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Real time file transfer using RTP-protocol (https://www.linuxquestions.org/questions/linux-server-73/real-time-file-transfer-using-rtp-protocol-4175425902/)

yahoosam 09-06-2012 03:47 AM

Real time file transfer using RTP-protocol
 
gotta do real time file transfer..
searched fair enough regarding the protocols etc..

Actually need to do transfer of files as it loads into one-server to other.
Found "RTP"..continued & finished it also,but couldn't find the way..

can any one suggest any real time library with any programming implementation..
please post any link in here
--
Thanks in advance

crosstalk 09-06-2012 08:07 AM

What do you mean by "real time" here? I see two possible definitions here:

1) You want to transfer the files from one server to another as they are created and appended to

2) You want to be able to deterministically transfer a file from one computer to another in hard or soft realtime.

I'll focus on the latter as it is my area of expertise.

If you're looking to do the latter, and need hard (or close to hard) realtime, then I suggest RTNet on Xenomai (for hard realtime). I don't think there's preexisting realtime file-transfer software, so you'll have to write your own.

For very soft realtime, you can just go with a dedicated Ethernet link and a standard Linux userspace process. You might be able to find a realtime-safe file transfer library for this application, too.

However, I don't think that this was the question you wanted answered, so please clarify your application so we can help you better.

yahoosam 09-06-2012 08:34 AM

The first one..

Actually files are being created in my central server and it becomes full due to limitations..
So till now i was executing FTP(libCURL) time to time,to maintain my central server free from load.

But the day i heard of RTP,i thought of using rtp.so that it could make all RTPpackets in other server to let central one processing well..

please suggest any "libCURL" kind of library with implementation,as it was found with "libCURL".

--
Thanks

crosstalk 09-06-2012 09:40 AM

RTP is for multimedia, not for file transfer.

FTP is suitable for your purposes, though. You could probably use a cron job to automate it, however, if you haven't done so already. This is probably the easiest solution.

If you want to code up your own program to do this using libcurl, then I'd suggest using FTP, SCP, or some other protocol meant for file transfer.

I hope this helps.

chrism01 09-06-2012 07:47 PM

Other options

1. use a remote mnt eg NFS, so the files are actually being created on the remote system directly
2. write a small daemon that checks file counts/disk space and the uses scp+auth-keys to copy+delete files
NB:if the time span between disk filling up is small, this is better than cron, because you could end up with multiple cron jobs tripping over each other.
3. if the files are being created via a program/script, add a check that does remote copies if it sees disk space too low.

yahoosam 09-07-2012 12:32 AM

Dear crosstalk &chrism01,

i am doing for multimedia files itself..

as per the case of FTP,i did work already..but its not real time protocol..as it doesn't transfer or let people view if the file is being transferred..that i meant through "real time".
i searched for video streaming etc stuffs on net,& i found RTP..so i decided for my stuff too..as my work is the same

so can you advice me some library interface of RTP & its implementation example links..

yahoosam 09-10-2012 02:25 AM

can anyone solve me out of this issue??


All times are GMT -5. The time now is 06:46 PM.