summaryrefslogtreecommitdiffstats
path: root/tcllib/modules/nns/common.tcl
blob: 5c3e1cacc17b5fcb5fa5463abd97fe53676cd59a (plain)
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
# -*- 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

##
# ### ### ### ######### ######### #########