nameserv::server(n) | Name service facility | nameserv::server(n) |
nameserv::server - Name service facility, Server
package require Tcl 8.4
package require nameserv::server ?0.3.2?
package require comm
package require interp
package require logger
::nameserv::server::start
::nameserv::server::stop
::nameserv::server::active?
::nameserv::server::cget -option
::nameserv::server::configure
::nameserv::server::configure -option
::nameserv::server::configure -option value...
Please read Name service facility, introduction first.
This package provides an implementation of the serviver side of the name service facility queried by the client provided by the package nameserv. All information required by the server will be held in memory. There is no persistent state.
This service is built in top of and for the package comm. It has nothing to do with the Internet's Domain Name System. If the reader is looking for a package dealing with that please see Tcllib's packages dns and resolv.
This server supports the Core protocol feature, and since version 0.3 the Search/Continuous feature as well.
The package exports five commands, as specified below:
Note that any incoming requests will only be handled if the application the server is part of does enter an event loop after this command has been run.
This form can be used only if the server is not active, i.e. has not been started yet, or has been stopped. While the server is active it cannot be reconfigured.
The options supported by the server are for the specification of the TCP port to listen on, and whether to accept non-local connections or not. They are:
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category nameserv of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation.
nameserv::client(n), nameserv::common(n)
name service, server
Networking
Copyright (c) 2007-2008 Andreas Kupries <andreas_kupries@users.sourceforge.net>
0.3.2 | nns |