How do i check ? which users are online on LAN ?

Hi,I Have small LAN having 15PCs.Now i have developed screen capture programin which i want to show These users are online on LANso how can i check itgive me possible alternatives... pLScan i use broadcasting or multicasting or .?Please
[292 byte] By [Ghanshyama] at [2007-10-3 5:12:16]
# 1
What do you mean by "users are online"?Computer is On?Your application started?Something else?
Michael.Nazarov@sun.coma at 2007-7-14 23:18:42 > top of Java-index,Core,Core APIs...
# 2
computer is Started and Application is Now ON.
Ghanshyama at 2007-7-14 23:18:42 > top of Java-index,Core,Core APIs...
# 3

Well, you should not care about "computer is Started" if you are going to check "Application is Now ON" ;)

There are three main ways: first send broadcast and receive answers, second - keep list of "buddies" and check each one personally and third - connect to dedicated server and ask about clients (each client should report to server about status of couse).

There are some more, but they are not as intresting. Example: each client should send broadcast every say minute and everybody should receive such brodcasts and note "ok, he is online one minute more".

Michael.Nazarov@sun.coma at 2007-7-14 23:18:42 > top of Java-index,Core,Core APIs...