# ACTIVESTATE TEAPOT-PKG BEGIN TM -*- tcl -*- # -- Tcl Module # @@ Meta Begin # Package nameserv::common 0.1 # Meta as::build::date 2015-05-25 # Meta as::origin http://sourceforge.net/projects/tcllib # Meta category Name service facility # Meta description Name service facility, shared definitions # Meta license BSD # Meta platform tcl # Meta require {Tcl 8} # Meta subject {name service} server client # Meta summary nameserv::common # @@ Meta End # ACTIVESTATE TEAPOT-PKG BEGIN REQUIREMENTS package require Tcl 8 # ACTIVESTATE TEAPOT-PKG END REQUIREMENTS # ACTIVESTATE TEAPOT-PKG BEGIN DECLARE package provide nameserv::common 0.1 # ACTIVESTATE TEAPOT-PKG END DECLARE # ACTIVESTATE TEAPOT-PKG END TM # -*- tcl -*- # ### ### ### ######### ######### ######### ## Name service - Common/shared information. # ### ### ### ######### ######### ######### ## Requirements namespace eval ::nameserv::common {} # ### ### ### ######### ######### ######### ## API proc ::nameserv::common::port {} { variable port return $port } namespace eval ::nameserv::common { # Derivation of the standard port number for this service. # nameserv::server # -> nameservserver / remove ':' # -> 62637378737837 / phonecode # -> 38573 / mod 65536 variable port 38573 # The modulo operation is required because IP port numbers are # restricted to unsigned short (16 bit), i.e. 1 ... 65535. } # ### ### ### ######### ######### ######### ## Ready package provide nameserv::common 0.1 ## # ### ### ### ######### ######### #########