LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   single server and multiple client programming in c and linux (https://www.linuxquestions.org/questions/linux-newbie-8/single-server-and-multiple-client-programming-in-c-and-linux-817317/)

renuaseri 07-01-2010 02:08 AM

single server and multiple client programming in c and linux
 
hi all,

i am new in client server programming and i have written code for single server to single client communicating one port(3490). but i have no idea how my single server will be communicate with different client on different port.how this will be happen ?

please give some idea to understand the logic or send any good link or any piece of code in c , i searched on net but all help was mostly for java progamming.

thanks in advance...

timmeke 07-01-2010 02:23 AM

Have a look at multi-threading and inetd. Several server-side daemons fork a new thread per incoming connection from the client.


All times are GMT -5. The time now is 12:53 AM.