Re: Help please!!!
From: Dilip Krishnan (dilipdotnet..NOSPAM.._at_apdiya.com)
Date: 04/21/04
- Next message: Dilip Krishnan: "Re: begginers tutorial on net"
- Previous message: Dilip Krishnan: "Re: Object Not Marked As Serializable"
- In reply to: Rahul Kumar: "Help please!!!"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 14:51:41 -0500
Have you thought about centralizing your discovery using a SQL server or
something? You woudlt have to broadcast it as its controlled centrally
Rahul Kumar wrote:
> Hi All,
>
> I have this little implementation issue. I have to implement a mechanism in
> my app so that, on a LAN no more than a specified number of instances of the
> app can run at a time. So that it can be installed on any number of machines
> but can run only on a limited number of machines.
> I have thought of the following strategy:
> When the app starts it broadcasts its presence to all other machines on the
> LAN. If there are other instances running, they increment the existing app
> count by one (which would be the same on every app instance). If this app
> count turns out to be bigger thar the allowed number, the newest app is sent
> back an instruction to shut down (by the other apps) with an appropriate
> message.
>
> My problem is how to implement this. To begin with, how do I know the IP
> addresses of all the machines on the LAN?
>
> Could someone please point to the right direction please?
>
> Regards
>
> Rahul
>
>
-- Regards, Dilip Krishnan MCAD, MCSD.net dilipdotnet at apdiya dot com
- Next message: Dilip Krishnan: "Re: begginers tutorial on net"
- Previous message: Dilip Krishnan: "Re: Object Not Marked As Serializable"
- In reply to: Rahul Kumar: "Help please!!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|