GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-May-2006, 02:12
Golmal Golmal is offline
Junior Member
 
Join Date: May 2006
Posts: 41
Golmal is an unknown quantity at this point
Exclamation

Multiple Clients Trouble


Hi All,

Scenario:
Say I have once Server which opens one port say APLHA.
There are say 200 Clients all know about the Server Port ALPHA.

Rule's
1. The clients alone can send the "I am Alive"/"I am here" Msg to ALPHA to
Server.
2. The Server needs to pick this msg and does work for it assuming each Client having unique IP..


Now if the All the clients are designed to Send this "I am Alive" Msg to Server at periodic interval say (1 Sec) to ALPHA.

Note:
All the Clients are in same local network and
All the Clients will be booted/powered at time T0.

I suspect that there may be collison of the Msg and may not be served properly...is it like that?
How shoudl my server should be design to handle this Simultaneous Clients at time T0.?

Also Note:
If server could have been sending the "Are you alive" then fine , i could do it in Round Robin fashion for each of the clents and check for it's ACK.
  #2  
Old 16-May-2006, 02:43
Golmal Golmal is offline
Junior Member
 
Join Date: May 2006
Posts: 41
Golmal is an unknown quantity at this point

Re: Multiple Clients Trouble


I have found a simple solution...may be it's not optimized
The clients need to have some random timer on start when they start sending to the server port ALPHA, so that not all the clients send the messages at the same time... this way we can avoid of confusion or blocks at the server..
and also the server need to wait for expected time based on the number of clients so that all the clients have sent there presence info...

if any one has better suggestion do let me know.

Thanks in advance.
 
 

Recent GIDBlogObservations of Iraq by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Domain Hosting – for only $6.95! luvila Web Hosting Advertisements & Offers 0 11-Apr-2006 06:55
Multiple Domain Hosting – save your money!!! luvila Web Hosting Advertisements & Offers 0 30-Jan-2006 07:32
Linker errors with multiple file progam nkhambal C Programming Language 2 24-Apr-2005 02:37
Having trouble trying to format C: Nickster64 Computer Software Forum - Windows 2 27-Jul-2004 07:31
strange sizeof(structure) - multiple of 8 pinkpanther C Programming Language 11 30-May-2004 07:20

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:25.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.