---
name: "nns_common"
section: "3tcl"
platform: "linux"
package: "tcllib"
version: "2.0+dfsg-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nns_common"
---

# nns\_common(3tcl)

Name service facility, shared definitions

```

```

## NAME

nameserv::common - Name service facility, shared definitions

## SYNOPSIS

package require **Tcl 8.5 9**

package require **nameserv::common ?0.2?**

**::nameserv::common::port**

```

```

## DESCRIPTION

Please read *Name service facility, introduction* first.

This package is internal and of no interest to users. It provides the commands of the name service facility which are shared by the client and server implemented by the packages **nameserv::server** and **nameserv** (the client).

This service is built in top of and for the package **comm**. It has nothing to do with the Internet's Domain Name System. If the reader is looking for a package dealing with that please see Tcllib's packages **dns** and **resolv**.

## API

The package exports a single command, as specified below:

- **::nameserv::common::port**

  The result returned by the command is the id of the default TCP/IP port a nameservice server will listen on, and a name service client will try to connect to.

## BUGS, IDEAS, FEEDBACK

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category *nameserv* of the *Tcllib Trackers* \[http://core.tcl.tk/tcllib/reportlist\]. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide *unified diffs*, i.e the output of **diff -u**.

Note further that *attachments* are strongly preferred over inlined patches. Attachments can be made by going to the **Edit** form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

## SEE ALSO

nameserv::client(3tcl), nameserv::server(3tcl)

## KEYWORDS

client, name service, server

## CATEGORY

Networking

## COPYRIGHT

```
Copyright (c) 2007-2008 Andreas Kupries <andreas_kupries@users.sourceforge.net>
```
