William's random thoughts

General thoughts related to my various projects

Tue, 25 Aug 2009

New mapper daemon in CVS


The new network mapper/sync dispatcher has just been committed to CVS. It implements everything I talked about in the previous blog post. the following are the implemented commands for the /tmp/TNmapper IPC socket.

all commands close the socket when they are finished.

UPDATE will return ACK\n on success and NACK\n on fail.

NTOA will return the ip address followed by \n or NACK\n if the nodename is not in the n2a hash.

ATON will return the nodename followed by a \n or NACK\n if the ip address is not in the map hash.

DUMP will return multiple lines containing the entire network map. it is comma separated into the following fields ipaddr, nodename, services Once it is finished dumping the socket is closed. it can return zero lines for an empty network map.

DEBUG This will output the %map and %n2a hashes to the IPC socket in Data::Dumper format.

[/projects/teotwawki] permanent link RSS feed


Archives: