UDP multiclient server in C

  • Thread starter guest1234
  • Start date
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:

user366312

Gold Member
62
2
Is using C and/or UDP a must?
 

Want to reply to this thread?

"UDP multiclient server in C" You must log in or register to reply here.

Related Threads for: UDP multiclient server in C

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top