Multi-client echo server


 
Thread Tools Search this Thread
Special Forums IP Networking Multi-client echo server
# 1  
Old 05-16-2008
Multi-client echo server

Hello

I am currently learning how to program a multi-client server. I still have some code to configure, however I think I am fairly near to the end.

My main problem is that whenever I connect with one client and receive an echo, do the same with another client and receive an echo, then try and receive another echo for the first client the server seems to stall at the point where it is supposed to receive the message. The client says it has sent the message so I don't know why this is happening.

And yet when server doesn't send an echo back to the first client, the second client can operate normally. I've also noticed that only when the second client closes does the echo to the first client return, but this is obviously not what I intended.


The echo service works fine in single client mode, it is when simultaneous access is attempted that problems arise.

Could anyone tell me why this is happening?

Any help would be much appreciated.

Last edited by slanj; 05-16-2008 at 07:30 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multi server access through remote server using ssh

Team, Presently I have 5 ip address kept in ip_abc1 file, for each of the ip address listed, i need to login on each ipaddress one at a time and login as below for that specific ip address ssh -p 8101 karaf@<ip.address_for the specific ip address as logged in> password features:list... (4 Replies)
Discussion started by: whizkidash
4 Replies

2. Shell Programming and Scripting

Echo multi-line string via heredoc syntax

$ cat bashtest #!/usr/local/bin/bash echo <<<"EOF" line1 line2 line3 EOF $ ./bashtest ./bashtest: line 3: line1: command not found ./bashtest: line 4: line2: command not found ./bashtest: line 5: line3: command not found ./bashtest: line 6: EOF: command not found What am i doing... (4 Replies)
Discussion started by: urello
4 Replies

3. Shell Programming and Scripting

Sftp script for dev server to client server

hi, i am new to unix, cuold u send some sftp acripts to send files to dev server to clint server, (1 Reply)
Discussion started by: Koti.annam
1 Replies

4. IP Networking

How to create a multi-chat server using UDP?

Hifriends I have a doubt . how to create a multi-chat server using UDP which can run on MAC systems.. Thank u in advance (3 Replies)
Discussion started by: babbu25
3 Replies

5. IP Networking

routing to two subnets from a multi-homed server

We have two subnets, say 'domA' (192.168.0.0/24) and 'domB' (10.10.0.0/16). These subnets are connected through the router 'router01'. One server 'base01' has two network cards, configured to domA and domB subnets respectively. Now let's consider a host host01.domA (192.168.0.5) trying to... (0 Replies)
Discussion started by: amriksk
0 Replies

6. Shell Programming and Scripting

How to Read File multi server from 1 server.

How to Read File multi server from 1 server. With Shell script. Server1 (is host) Server2 Server3 Server4 All server : user & password same. : Path of file it same. : user command grep "123456" filename*.log Gide line Pls. (1 Reply)
Discussion started by: ooilinlove
1 Replies

7. IP Networking

DHCP Server on Vxworks multi interface question

Hi, We currently operate a DHCP Server on Vxworks system. It seems that the server is functioning only over the boot interface. While trying to use it on a different interface the DHCP client messages seems to reach the interface but stay without response. From a... (1 Reply)
Discussion started by: zohara
1 Replies

8. Windows & DOS: Issues & Discussions

Office server => laptop =>client server ...a lengthy and laborious ftp procedure

Hi All, I need your expertise in finding a way to solve my problem.Please excuse if this is not the right forum to ask this question and guide me to the correct forum,if possible. I am a DBA and on a daily basis i have to ftp huge dump files from my company server to my laptop and then... (3 Replies)
Discussion started by: kunwar
3 Replies

9. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

10. Programming

multi-threaded server, pthreads, sleep

I am trying to writa a multi-client & multi-threaded TCP server. There is a thread pool. Each thread in the pool will handle requests of multiple clients. But here I have a problem. I find a solution but it is not how it must be... i think. When threads working without sleep(1) I can't... (0 Replies)
Discussion started by: Parahat Melayev
0 Replies
Login or Register to Ask a Question
roarclientpass(1)				       System User's Manual: roarclientpass					 roarclientpass(1)

NAME
roarclientpass - Passing clients to and creating new listen sockets on RoarAudio sound server SYNOPSIS
roarclientpass [OPTIONS]... DESCRIPTION
This program let you pass new clients to a RoarAudio sound server as as a proxy and let you add new listen sockets to a running server. OPTIONS
--server SERVER Set server hostname. --stdin Client is on stdin. --stdout Client is on stdout. --stdio Same as --stdin --stdout. This option may for example be used in case of being runed from a inetd. --stderr Client is on stderr. Beside to make stderr known as client fh it will disable error output on stderr. This must be used in case this program is used from inetd or simular tools. --client-fh FH Client is on FH. This is basicly the same as --client-fh on roard(1). --proto PROTO Set the protocol used by the client. Defaults to RoarAudio. --byteorder BO Sets the byteorder used by the client. Defaults to network byte order. --listen Client is a listen connection. This is not the same as --mode listen. --mode MODE Set mode of operation: none, listen or connect Defaults to none. --bind BIND Set host/node/path for mode listen and connect. --port PORT Set port for mode listen and connect. --help Show this help SEE ALSO
roartips(7), libroar(7), RoarAudio(7). HISTORY
For history information see RoarAudio(7). RoarAudio July 2010 roarclientpass(1)