1udpcluster(n)Lightweight UDP based tool for cluster node discoveryudpcluster(n)
2
3
4
5______________________________________________________________________________
6
8 udpcluster - UDP Peer-to-Peer cluster
9
11 package require Tcl 8.5
12
13 package require udpcluster ?0.3.3?
14
15 package require ip
16
17 package require nettool
18
19 package require comm
20
21 package require interp
22
23 package require dicttool
24
25 package require cron
26
27______________________________________________________________________________
28
30 This package is a lightweight alternative to Zeroconf. It utilizes UDP
31 packets to populate a table of services provided by each node on a lo‐
32 cal network. Each participant broadcasts a key/value list in plain
33 UTF-8 which lists what ports are open, and what protocols are expected
34 on those ports. Developers are free to add any additional key/value
35 pairs beyond those.
36
37 Using udpcluster.
38
39 For every service you wish to publish invoke:
40
41 cluster::publish echo@[cluster::macid] {port 10000 protocol echo}
42
43
44 To query what services are available on the local network:
45
46
47 set results [cluster::search PATTERN]
48 # And inside that result...
49 echo@LOCALMACID {
50 port 10000
51 protocol echo
52 }
53
54
55 To unpublish a service:
56
57
58 cluster::unpublish echo@[cluster::macid]
59
60
61 Results will Historical Notes:
62
63 This tool was originally known as nns::cluster, but as development pro‐
64 gressed, it was clear that it wasn't interacting with any of the other
65 facilities in NNS.
66
68 This document, and the package it describes, will undoubtedly contain
69 bugs and other problems. Please report such in the category nameserv
70 of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please
71 also report any ideas for enhancements you may have for either package
72 and/or documentation.
73
74 When proposing code changes, please provide unified diffs, i.e the out‐
75 put of diff -u.
76
77 Note further that attachments are strongly preferred over inlined
78 patches. Attachments can be made by going to the Edit form of the
79 ticket immediately after its creation, and then using the left-most
80 button in the secondary navigation bar.
81
83 name service, server
84
86 Networking
87
89 Copyright (c) 2016-2018 Sean Woods <yoda@etoyoc.com>
90
91
92
93
94tcllib 0.3.3 udpcluster(n)