Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

UDP multiclient server in C

  1. Sep 14, 2014 #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: Sep 14, 2014
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted

Similar Discussions: UDP multiclient server in C
  1. Sending UDP Packet (Replies: 6)

  2. Client server (Replies: 2)

  3. C chat server approach (Replies: 3)

  4. Offline Server (Replies: 2)