[ENet-discuss] how to use enet to get all the hosts in a subnet and nat behind?

enetcub enet_club at 126.com
Tue Jan 8 11:44:59 PST 2013


enet-discusshi ,all 

i'm a new to enet,enet lib is smart, i wound like to find  a way to get all the alive hosts in a subnet and also nat behind,
is there any demo code or any goods ideas to implemention it? thanksall~

here is of mine:

define a struct while contains host_status message(such as:status/ip/mac/disk/cpu.usages...) of the hosts and reply it to the broadcast sender, the sender parse it and get the alive information from the received struct and list it out......

but i find the may above too complex to do it, is there any easy to accomplish /?

my goal just like:
when give a praram to the app:

./enet_util -list -1 -w 1
this means to list all alive hosts which is free(1) whatever in a subnet or nat behind ....
 
it given:

ID    HOST IP    HOST NAME    MAC     STATUS        
-------------------------------------------------------------------------------- 
1    192.169.0.1 XXXXXXXXX 99:00:....  FREE

something like that//
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130109/6921cc9b/attachment.html>


More information about the ENet-discuss mailing list