From 75af6aed482ab16997c1388fe801f74d11ec12a4 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Mon, 23 Jan 2012 08:54:14 +0100 Subject: Imported Upstream version 2.1.9 --- doc/zmq_tcp.html | 132 +++++++++++++++++++++++++++---------------------------- 1 file changed, 64 insertions(+), 68 deletions(-) (limited to 'doc/zmq_tcp.html') diff --git a/doc/zmq_tcp.html b/doc/zmq_tcp.html index 78356f5..5256a84 100644 --- a/doc/zmq_tcp.html +++ b/doc/zmq_tcp.html @@ -2,15 +2,28 @@ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> - - + + zmq_tcp(7) - +
+

SYNOPSIS

TCP is an ubiquitous, reliable, unicast transport. When connecting distributed applications over a network with ØMQ, using the TCP transport will likely be your first choice.

+
+

ADDRESSING

A ØMQ address string consists of two parts as follows: transport://endpoint. The transport part specifies the underlying transport protocol to use, and for the TCP transport shall be set to tcp. The meaning of the endpoint part for the TCP transport is defined below.

-

Assigning a local address to a socket

+
+

Assigning a local address to a socket

When assigning a local address to a socket using zmq_bind() with the tcp transport, the endpoint shall be interpreted as an interface followed by a colon and the TCP port number to use.

@@ -626,7 +610,9 @@ names exist, thus only the primary IPv4 address may be used to specify an interface.
-

Connecting a socket

+
+
+

Connecting a socket

When connecting a socket to a peer address using zmq_connect() with the tcp transport, the endpoint shall be interpreted as a peer address followed by a colon and the TCP port number to use.

@@ -639,11 +625,14 @@ The DNS name of the peer.
  • -The IPv4 address of the peer, in it’s numeric representation. +The IPv4 address of the peer, in its numeric representation.

  • +
    + +

    WIRE FORMAT

    ØMQ messages are transmitted over TCP in frames consisting of an encoded @@ -703,6 +692,8 @@ exceeding 254 octets:

    +-+-+-+-+-+-+-+ ...
    + +

    EXAMPLES

    @@ -729,6 +720,8 @@ rc = zmq_connect(socket, "tcp://server1:5555"); assert (rc == 0);
    + +

    SEE ALSO

    zmq_bind(3) @@ -738,17 +731,20 @@ assert (rc == 0); zmq_inproc(7) zmq(7)

    +
    +

    AUTHORS

    This ØMQ manual page was written by Martin Sustrik <sustrik@250bpm.com> and Martin Lucina <mato@kotelna.sk>.

    +

    -- cgit v1.2.3