Multiclients with UDP Server

Discussion in 'Programming' started by ngontro86, Nov 8, 2008.

  1. #1
    Hi folks,

    I am programming an UDP server that can serve multi-clients. Basically, if the server is a TCP one, it could be easier, I know that. But googling around with multi-clients + UDP server, people do not talk much.

    Briefly, I will make the UDP server multithreaded. Every time a new client comes, create a thread to take care of it. But you know UDP is connectionless so that there is no way we can know exactly where and when to create a new thread.

    I am thinking about other way but I have no freaking ideas.

    Anybody has experience could share with me some? Highly appreciate it.

    Thank a lot.
     
    ngontro86, Nov 8, 2008 IP
  2. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #2
    read into multicast, this could help you
     
    happpy, Nov 10, 2008 IP