LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-30-2007, 10:46 PM   #1
M007
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
problem in connecting Multiple clients to socket server in linux


Hi..
i created a server program using two threads, in one thread i used AF_INET socket to receive data form client, the same data which i receive has to use in another thread,i.e another thread i used AF_UNIX socket to send data for client.
it is working ,but when i create multiple clients to send data, clients are creating but current client receiving data but old client is waiting for data..
i wrote program in c++ in fedora 5,kernel 2.6.19
plz give good suggesstions as early as possible..
thks bye
 
Old 10-31-2007, 11:52 PM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
1)
There is a dedicated programming subforum at LQ.
2)
I think it will be difficult to say what goes wrong without the source code. Just a wild guess would be that you open connections in your server, but use only one variable to hold the socket descriptor and therefor overwrite the earlier socket descriptors.
 
  


Reply

Tags
clients, creating, multiple, server, socket, using



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
multiple clients for echo server msriram_linux Linux - Networking 1 12-05-2007 03:27 PM
multiple-echo-clients-server msriram_linux Linux - Networking 2 12-05-2007 12:10 PM
server which accepts multiple clients suresh_rupineni Linux - Server 1 10-19-2007 01:46 AM
Multiple clients communicating to one socket dragondad Programming 3 09-10-2005 08:22 AM
Mail Server for Multiple Hosting Clients bytebrowser Linux - Networking 2 01-24-2005 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:57 PM.

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
Open Source Consulting | Domain Registration