1nnslog(n) Name service facility nnslog(n)
2
3
4
5______________________________________________________________________________
6
8 nnslog - Name service facility, Commandline Logging Client Application
9
11 nnslog ?-host host? ?-port port?
12
13______________________________________________________________________________
14
16 Please read Name service facility, introduction first.
17
18 The application described by this document, nnslog, is a simple command
19 line client for the nano name service facility provided by the Tcllib
20 packages nameserv, and nameserv::server.
21
22 It essentially implements "nns search -continuous *", but uses a dif‐
23 ferent output formatting. Instead of continuously showing the current
24 contents of the server in the terminal it simply logs all received
25 add/remove events to stdout.
26
27 This name service facility has nothing to do with the Internet's Domain
28 Name System, otherwise known as DNS. If the reader is looking for a
29 package dealing with that please see either of the packages dns and re‐
30 solv, both found in Tcllib too.
31
32 USE CASES
33 nnslog was written with the following main use case in mind.
34
35 [1] Monitoring the name service for all changes and logging them in
36 a text terminal.
37
38 COMMAND LINE
39 nnslog ?-host host? ?-port port?
40 The command connects to the specified name service, sets up a
41 search for all changes and then prints all received events to
42 stdout, with each events on its own line. The command will not
43 exit until it is explicitly terminated by the user. It will es‐
44 pecially survive the loss of the connection to the name service
45 and reestablish the search and log when the connection is re‐
46 stored.
47
48 The options to specify the name service will be explained later,
49 in section OPTIONS.
50
51 OPTIONS
52 This section describes all the options available to the user of the ap‐
53 plication
54
55 -host name|ipaddress
56 If this option is not specified it defaults to localhost. It
57 specifies the name or ip-address of the host the name service to
58 talk to is running on.
59
60 -port number
61 If this option is not specified it defaults to 38573. It speci‐
62 fies the TCP port the name service to talk to is listening on
63 for requests.
64
66 This document, and the package it describes, will undoubtedly contain
67 bugs and other problems. Please report such in the category nameserv
68 of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please
69 also report any ideas for enhancements you may have for either package
70 and/or documentation.
71
72 When proposing code changes, please provide unified diffs, i.e the out‐
73 put of diff -u.
74
75 Note further that attachments are strongly preferred over inlined
76 patches. Attachments can be made by going to the Edit form of the
77 ticket immediately after its creation, and then using the left-most
78 button in the secondary navigation bar.
79
81 nameserv(n), nameserv::common(n)
82
84 application, client, name service
85
87 Networking
88
90 Copyright (c) 2008 Andreas Kupries <andreas_kupries@users.sourceforge.net>
91
92
93
94
95tcllib 1.0 nnslog(n)