Optimizing UDP Multiclient Server for Efficient Content Streaming in C

  • Thread starter Thread starter guest1234
  • Start date Start date
  • Tags Tags
    Server
AI Thread Summary
The discussion centers on creating a UDP server capable of streaming content to multiple clients upon initial request, with the goal of testing client capacity before packet loss exceeds 1%. The current implementation is an echo server that requires clients to request data, leading to excessive overhead. There is consideration of a custom handshake to manage connections, but challenges arise with delayed ACK messages and server disconnection. The idea of implementing a signaling bus to manage streaming sessions is proposed. Additionally, questions are raised about whether media streaming servers operate on a request basis and the necessity of using C and UDP for this project. Insights and tips on these topics are sought from the community.
guest1234
Messages
38
Reaction score
1
Hi all

I'm trying to create a server that uses UDP and is capable of handling multiple clients. The server should 'stream' content to the clients only on the initial request (i.e. when starting the client). The general idea is to test how many clients is the server able to 'serve' before the packet loss exceeds 1%.

I've implemented simple echo-server: it sends data to the clients only if the latter requests to do so. However it's not what I want -- too much overhead is wasted on requesting new packages. Custom handshake with the server is achievable (although one must consider special cases where so-called ACK messages (still on UDP!) arrive too late) but disconnecting the server gets nastier.

Should there be some kind of bus between the server and clients, which signals the server to start streaming content to new clients and stops when client deattaches the 'session'?

Also, does a media streaming server send data to the client only if the latter requests?

Any pointers/tip appreciated.
 
Last edited:
Technology news on Phys.org
Is using C and/or UDP a must?
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top