E1. The General Format of Address

Top  Previous  Next

The network address looks as follows:

[<protocol>/][<protocol-specific-part>]

By default, <protocol> has the TCP value. The default values of <protocol-specific-part> are determined by the application.

IP Addresses

<interface>::=<ip-address>

<ip-address> can be either a DNS name or an IP address separated by periods (for example, 127.0.0.1).

<socket-address>::=<interface>:<port-number>

<port-number> must be specified by a decimal number.

Examples:

1.tcp/127.0.0.1:2193

means a TCP protocol, port 2193 on an interface 127.0.0.1.

2.tcp/[::]:2193

means a TCP protocol, port 2193 on an IPv6 interface 0000.0000.0000.0000.0000.0000.0000.0000

3.localhost:2193

the same.

4.tcp/:9999

value for the server: the default interface depending on the application (usually all available interfaces), port 9999; value for client: the default connection to the host depending on the application (usually localhost), port 9999.

5.tcp/

TCP protocol, default port.

UDS Addresses

Connection-oriented protocol:

unx/<file_name>

Datagram-oriented protocol:

udx/<file_name>

Examples:

1.unx/tmp/drwcsd:stream

2.unx/tmp/drwcsd:datagram

Connection-Oriented Protocol

<protocol>/<socket-address>

where <socket-address> sets the local address of the socket for a server or a remote server for a client.

Datagram-Oriented Protocol

<protocol>/<endpoint-socket-address>[-<interface>]

Examples:

1.udp/231.0.0.1:2193

means using a multicast group 231.0.0.1:2193 on an interface depending on the application by default.

2.udp/[ff18::231.0.0.1]:2193

means using a multicast group [ff18::231.0.0.1] on an interface depending on the application by default.

3.udp/

application-dependent interface and endpoint.

4.udp/255.255.255.255:9999-myhost1

using broadcasting messages on port 9999 on myhost1 interface.

SRV Addresses

srv/[<server name>][@<domain name/dot address>]