LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2010, 02:08 AM   #1
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 15
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...
 
Old 07-01-2010, 02:23 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running socket programming (client/server) on single computer rahb20 Linux - Networking 5 09-17-2008 12:09 AM
Synchronization problem wait forever when multiple client socket programming Ashok_mittal Programming 1 06-02-2008 07:23 AM
Linux Netwok programming server with multiple clients pavan_iiith Linux - Newbie 2 03-10-2008 10:13 PM
Segmentation fault in client - server programming in Linux ankurcse Programming 10 07-17-2006 10:41 AM
Can I use a single Samba server for multiple domains? help321 Linux - Software 0 08-11-2004 06:20 AM


All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration