Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-10-2008, 04:42 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Question Linux Netwok programming server with multiple clients

Hi all!
I'm new to netwok programming.
I wrote a server code to handle multiple clients on the same port and the
corresponding client code.
I listen and accepts client connects upto a number and stop listening.
When I send message from server to clients I could send only one message
to one client and for the remaining messages receivers are just taking
null values and nothing is being printed..
I tried debug but of no use..
Is it that you can only send one msg to one client.
Can some1 help me to sort this out
Old 03-10-2008, 09:50 PM   #2
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
I'm probably not the person to answer the final question, but....... the person that can will need more info. Be as specific as possible. I'm guessing that somebody with more experience with this can help, but will need to know what protocol you are using at the very minimum. The more details the better.
Old 03-10-2008, 10:13 PM   #3
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Definitely. As a minimum we'd need to know what programming language you're using, and ideally see the code. Some questions: is your sever sending nulls, or are the clients just printing nulls because nothing is being received? How did you try debugging your app, and are you certain your server is even trying to send more messages? There is definitely no "one message per client" limitation.

Also, I suspect this should be in the programming forum, not newbie.


clients, multiple, server

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
multiple clients for echo server msriram_linux Linux - Networking 1 12-05-2007 04:27 PM
multiple-echo-clients-server msriram_linux Linux - Networking 2 12-05-2007 01:10 PM
problem in connecting Multiple clients to socket server in linux M007 Linux - Server 1 11-01-2007 12:52 AM
server which accepts multiple clients suresh_rupineni Linux - Server 1 10-19-2007 02:46 AM
Mail Server for Multiple Hosting Clients bytebrowser Linux - Networking 2 01-24-2005 04:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 AM.

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