1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
[comment {-*- tcl -*- doctools manpage}]
[manpage_begin nns n 1.1]
[copyright {2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>}]
[moddesc {Name service facility}]
[titledesc {Name service facility, Commandline Client Application}]
[description]
[para]
The application described by this document, [syscmd nns], is a simple
command line client for the nano name service facility provided by the
Tcllib packages [package nameserv], [package nameserv::common], and
[package nameserv::server]. Beyond that the application's sources also
serve as an example of how to use the client package. All abilities of
a client are covered, from configuration to registration of names to
searching.
[para]
[syscmd nns] is based upon the package [package nameserv]
[subsection {USE CASES}]
[syscmd nns] was written with the following two main use cases in
mind.
[para]
[list_begin enumerated]
[enum]
Registration of a name/data pair in the name service.
[enum]
Searching the name service for entries matching a glob pattern.
[list_end]
[para]
Beyond the above we also want to be able to identify the client, and
get information about the name service.
[subsection {COMMAND LINE}]
[list_begin definitions]
[call [cmd nns] [method bind] \
[opt "[option -host] [arg host]"] \
[opt "[option -port] [arg port]"] \
[arg name] [arg data]]
This form registers the [arg name]/[arg data] pair in the specified
name service. In this form the command will [emph not] exit to keep
the registration alive. The user has to kill it explicitly, eithre by
sending a a signal, or through the job-control facilities of the shell
in use.
[para]
The options to specify the name service will be explained later, in
section [sectref OPTIONS].
[call [cmd nns] [method search] \
[opt "[option -host] [arg host]"] \
[opt "[option -port] [arg port]"] \
[opt [option -continuous]] \
[opt [arg pattern]]]
This form searches the specified name service for entries matching the
glob-[arg pattern] and prints them to stdout, with each entry on its
own line. If no pattern is specified it defaults to [const *],
matching everything.
[para]
The options to specify the name service will be explained later, in
section [sectref OPTIONS].
[para]
If the option [option -continuous] is specified the client will not exit
after performing the search, but start to continuously monitor the service
for changes to the set of matching entries, appropriately updating the
display as changes arrive.
[call [cmd nns] [method ident] \
[opt "[option -host] [arg host]"] \
[opt "[option -port] [arg port]"]]
This form asks the specified name service for the version and features
of the name service protocol it supports and prints the results to
stdout.
[para]
The options to specify the name service will be explained later, in
section [sectref OPTIONS].
[call [cmd nns] [method who]]
This form prints name, version, and protocol version of the
application to stdout.
[list_end]
[subsection OPTIONS]
This section describes all the options available to the user of the
application
[para]
[list_begin options]
[opt_def -host name|ipaddress]
If this option is not specified it defaults to [const localhost]. It
specifies the name or ip-address of the host the name service to talk
to is running on.
[opt_def -port number]
If this option is not specified it defaults to [const 38573]. It
specifies the TCP port the name service to talk to is listening on for
requests.
[list_end]
[section {BUGS, IDEAS, FEEDBACK}]
This document, and the application it describes, will undoubtedly
contain bugs and other problems.
Please report such in the category [emph nameserv] of the
[uri {http://sourceforge.net/tracker/?group_id=12883} {Tcllib SF Trackers}].
Please also report any ideas for enhancements you may have for either
application and/or documentation.
[see_also nameserv::common(n)]
[see_also nameserv(n)]
[keywords {name service} client application]
[manpage_end]
|