File: common.tcl

package info (click to toggle)
tcllib 2.0%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: forky, trixie
  • size: 83,572 kB
  • sloc: tcl: 306,798; ansic: 14,272; sh: 3,035; xml: 1,766; yacc: 1,157; pascal: 881; makefile: 124; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (38 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (2)
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.2

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