Real Time Transport Protocol - rtp

I have just started learning video/image transfer using RTP. for this I tried to get some resources. I got one of the GitHub project having some code. But the code is not running fine & have a lot of Bugs. I just wanted to ask that can I get some resources or tutorial kind of thing to understand RTP.

Related

Potential Issues Using cURL CLI and libcurl in multithreaded environment?

I am working on a Linux-based headless system for work that automatically runs a multithreaded C++ program that connects to various web services (Slack, AWS S3, etc.) for both upload and download of various files, and posting smaller JSON messages. We have a 5k-10k of these systems deployed with customers. There are times when all networking on the device appears to completely fail, and it's quite difficult to replicate this issue which up until now, has been chalked up to local network environment issues by my colleagues.
I've recently had time to dig into some of the application logs and it appears most curl errors (error code 6) stem from possible inability to resolve host (specifically, slack.com). I noticed also that much of the C++ code utilizes spawns child processes using cURL CLI which are all tied to the slack service utility, while other parts of the program utilize libcurl, namely AWS SDK C++ and smaller webservices for our own website.
TL:DR - individual cURL CLI child processes spawned by my C++ program appear to be interrupting all processes using libcurl when throwing SIGINT.
My questions are:
Are there any potential issues with using cURL CLI and libcurl in a multithreaded program such as this? It seems like the curl command failing on slack is sending SIGINT to everything using libcurl.
Am I better of moving everything to libcurl or is there a way to deal with the SIGINT without rewriting that whole section of code?
Any ideas or resources?
Thanks very much!

How to send end-user ip address with the youtube-dl request and get video download link. or there is another way to not get blocked by youtube

currently working on a youtube video downloader . using youtube-dl,Django and hosting my project on Pythonanywhere,i almost completed my project but when i send request more then 15-20 youtube block my pythonanywhere server ip. SO i want to ask that how can i solve this blocking problem. free proxies takes too much time to respond. please give me a solution.thanks in advance
I suspect that most YouTube downloaders do one of three things:
Execute client side code to do the actual download. Instead, what the server/extension does is go through the code to find a file being served.
Pay for professional proxy servers sufficient to handle the number of downloads one seeks to make without running into rate limits. Proxies are not expensive.
Limit the rate at which downloads are conducted.
Those are the only ways I can see around the blocking problem. Youtube really doesn't want you to do what you are trying to do and has put a lot of thought into stopping it.

gSoap: Connects over Wired network but TCP error over any wireless network

I have just started using gsoap and after spending a lot of time i have successfully included it in my project and have started to use it. The problem which has been troubling me for past many days is that when i hit a service,it connects over LAN,the connection is established but when i switch over to any wireless network connection doesn't establish,I debugged into the code and found that the connection could not be established over wireless network which results in connection timeout after apt retries.I am unable to figure out why this happens i.e why connection is not established over wireless networks,can anyone guide me as i am a newbie with gSoap and network programming as well. Any help would be appreciated.
I got the SOAP service hit and there was no problem of wired or wireless connection.Basically what I was doing was hitting the service from windows platform(msvc compiler) which was over LAN and then i was trying to integrate the same code with clang compiler to generate a .so to run it on an Android platform. I was getting a proper response when hitting from windows but when hitting from Android I got a TCP error.I could not find any issue in the code when I posted the question and the only difference I could see was connection type of two platforms but there was an underlying issue in integration over android due to which the error was getting generated and I resolved it and now the service is getting hit on both platforms.
GSOAP works like a charm over a network irrespective of the type(wired or wireless) so do not go astray after looking at the question thinking it can be a problem,if u think you have a similar issue,I would recommend looking into other things rather than wasting your time thinking it to be an issue like I did.

Automated file transfer between two macs using an ethernet cable?

Quick background, I am an intern at a company assigned to a project that I have no experience with, and I need some help trying to figure out where to start.
The goal of the project is to transfer very large chunks of data from a database, to a PC and then to a Mac. I am trying to code the communication between the PC and the Mac (this has to be done in c++, I've heard Python is easier but I have to use c++). Some requirements are that the PC and Mac be directly connected via an ethernet cable, and neither computer will have access to internet. The data transfer needs to be automated, so whenever the PC detects that it has received a full dataset from the database, it transfers the data to the PC. I cannot use any third party software to do this.
So far, through the research I've done, I think I need to set up a TCP Server-Client network. I've been using the code here (http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/practical/) as a guideline for socket coding. I am first trying to test this by sending files between two macs (I don't have access to a PC atm). Any guidelines as to where I go from here would be helpful. I have looked into setting up static IP addresses and such, but I get stuck from there.
I don't expect anyone to code this for me, I am just new to socket coding and this sort of project, so just looking for a nudge in the right direction. Thanks!
Before you start coding, keep in mind that to connect PC to Mac you may need a crossover cable.
Then do some reading on the wired ad-hoc networks. The last post in this discussion may help.
Finally, configure and mount shared volumes (using the stock software, no 3rd parties involved), and don't use the low-level socket interface.

Sails.js has socket.io issues on AWS, but not locally

I'm building an app called Tuftslife, and when running locally it works fine, but when I put it on AWS, it works for a little, outputs a lot of errors (like those below) and then crashes a little while later and only returns 500s. Our theory is that these requests are never timing out and overwhelming the server.
We tried turning off socket.io using this gist but it doesn't seem to have worked. What are we doing wrong?
Deleting the entire file that does socket.io on the frontend ended up muting our issue. I don't know enough about these things to diagnose exactly what we were doing. Oh well, works now.