Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   messaging service (http://www.go4expert.com/forums/messaging-service-t7375/)

haba 19Nov2007 01:21

messaging service

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

All times are GMT +5.5. The time now is 12:46.