Netinfo - Protocol, service, network and host info Directions to find it at [Stu] Netinfo version 0.4, September 2007. * Added "networks" db * A bit of cleanup/adjustment * documentation improvements ---- One example of usage would be to look up hostnames (usually taken from /etc/hosts) using Netinfo and creating sockets (aka ceps) using [Ceptcl] and the -noresolve option. This way, one can avoid the potential delays caused by the operating system looking up the hostname. From the man page: The netinfo Tcl extension provides access to system proto- col, service, network and host information which is retrieved from system databases and made available for querying. This functionality is somewhat analogous to that provided by some of the functions referenced in the C include file usually found on unix-like oper- ating systems (gethostbyname, getservbyport, etc). Unlike those functions, netinfo does not go beyond referencing the data stored in the system "databases"; netinfo does not access the databases per query, rather it loads the data and parses it into an internal ready-for-querying format. If any changes are made to the databases after loading then the affected databases would need to be reloaded if the changes are to be available to netinfo queries. Normal usage involves optionally specifying any database files if the defaults do not match your reality, calling as many of the "load" commands as are necessary (depending on what data you need to access; netinfo does not load anything at startup) and using the querying and extraction commands to retrieve info.