-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: ChiefCoder
Message 2 in Discussion

Hi Anand,   You can design the architecture of your application like this: You 
can write a windowservice that is continously listening for incoming 
connections on TCP/IP (Socket) and has a property "priority" and "master" 
stored in registry/db/textfile (I preferred db, properties will be per 
terminal) This web service will have two facets, if its IPEndpoint/serverName 
is marked as "master", it will listen to incoming connections otherwise will 
fetch the IP of "master" and try to connect to it. This service will then be 
installed on multiple clients. At one time only one of them will be "master", 
since all except "master" are maintaining a connection (SocketClient) with 
"master", whenever "master" goes down, an exception will be propogated to the 
backup services that were connecting, now the question who will become "master" 
and start listening instead of requesting connection will depend on the 
priority (since each one of them have a priority), whichever has highest takes 
control and updates the info about "master" in the db and rest of them stuck in 
the exception loop will now listen to it. You may want to add "interval" 
between shifting from one service to another if desired.   Sumit Amar MSN iDSS 
Microsoft Corporation

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to