1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

messaging service

Discussion in 'C' started by haba, Nov 18, 2007.

  1. haba

    haba New Member

    Joined:
    Nov 18, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I'm trying to create a UDP messaging service on Unix. The idea is to have a Service Center (SC) that will handle all the receiving and sending of messages from one user to another. I have some problems:
    1) How many sockets should I use on my SC? I'm thinking only one that will handle everything;
    2) My SC should always be listening for new stuff coming in. I'm thinking of creating a new process/thread to handle the received message. Should I use fork? or pthread?

    Thank you
     

Share This Page