File 'net/ns/client.tcl' (part of 'Pool_Net')

Description (short)
Mini nameserver, application registry, client
Written by
Andreas Kupries
Description
Clientside of mini nameserver / registry system. It is built on top of the Comm package by John R. LoVerso.
Depends on
Tcl, Comm
Keywords
nameserver, registry, application registry


::pool::nameserver::Clean ()

This procedure is hooked into 'exit' to perform automatic revokation upon exit. See ::pool::atexit::add too. It is not foolproof, as signals are not trapped.

::pool::nameserver::lookup (pattern)

Queries the name server for registered applications matching the pattern.
Argument: pattern (= *) glob-style pattern to use during search.
Returns: A list usable by 'array set'. Application names are mapped to ids usable by 'comm'.

::pool::nameserver::register (as)

Registers the running application at the name server under the name of as. The name is remembered internally, for use by ::pool::nameserver::revoke.
Argument: as Name to use for registration.

::pool::nameserver::revoke ()

Removes the application from the name server.

::pool::nameserver::revokeOther (name)

Removes the application from the name server.
Argument: name The name of the application to remove from the nameserver.


Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries