Package: tcllib, Version: CVS HEAD
Name service facility, Client Extension
package require Tcl 8.4 package require nameserv::auto ? 0.3 ? package require nameserv
This package provides the exact same API as is provided by package nameserv, i.e the regular name service client. It differs from the former by taking measures to ensure that longer-lived data, i.e. bound names, continuous and unfulfilled async searches, survive the loss of the connection to the name server as much as is possible.
This means that the bound names and continuous and unfulfilled async searches are remembered client-side and automatically re-entered into the server when the connection comes back after its loss. For bound names there is one important limitation to such restoration: It is possible that a name of this client was bound by a different client while the connection was gone. Such names are fully lost, and the best the package can and will do is to inform the user of this.nameserv and is therefore not described here. Please read the documentation of nameserv. nameserv, and one more. The additional option allows the user to specifies the time interval between attempts to restore a lost connection.
It reacts to such events by starting a periodic timer and trying to reconnect to the server whenver this timer triggers. On success the timer is canceled, a re-connection event generated, and the package proceeds to re-enter the remembered bound names and continous searches.
Another loss of the connection, be it during or after re-entering the remembered information simply restarts the timer and subsequent reconnection attempts.http://sourceforge.net/tracker/?group_id=12883. Please also report any ideas for enhancements you may have for either package and/or documentation.