R
RedLars
Hi,
In a project that I'm involved with we're looking for an algorithm of
discovering and maintaining a record of all computers 'alive' on a lan
(ethernet and tcp/ip). Obviously we'd like the status to be as up-to-
date as possible but without generating too much traffic on the
network. So far I've come up with two general solution but dont know
if they would even work in a practical situation;
#1 - A background thread of somekind running a loop trying to ping all
host on the lan.
#2 - A background thread listening to the lan and registrating all
pc'es sending message.
The first suggestiong would surely generate a bit of traffic on the
lan and would also probably be sort of slow (not up-to-date). The
second solution would not increase the traffic on the lan but I'm
unsure how demanding such a task would be on the computer and how
complex it would be to implement it in C# using .Net 2.0.
Additionally, would the second solution even work, I mean, all pc'es
on a network do broadcast messages periodically?
Appreciate any input on solution or API.
Cheers
In a project that I'm involved with we're looking for an algorithm of
discovering and maintaining a record of all computers 'alive' on a lan
(ethernet and tcp/ip). Obviously we'd like the status to be as up-to-
date as possible but without generating too much traffic on the
network. So far I've come up with two general solution but dont know
if they would even work in a practical situation;
#1 - A background thread of somekind running a loop trying to ping all
host on the lan.
#2 - A background thread listening to the lan and registrating all
pc'es sending message.
The first suggestiong would surely generate a bit of traffic on the
lan and would also probably be sort of slow (not up-to-date). The
second solution would not increase the traffic on the lan but I'm
unsure how demanding such a task would be on the computer and how
complex it would be to implement it in C# using .Net 2.0.
Additionally, would the second solution even work, I mean, all pc'es
on a network do broadcast messages periodically?
Appreciate any input on solution or API.
Cheers