summaryrefslogtreecommitdiff
path: root/doc/zmq_tcp.html
diff options
context:
space:
mode:
authorMartin Lucina <martin@lucina.net>2012-01-23 08:53:25 +0100
committerMartin Lucina <martin@lucina.net>2012-01-23 08:53:25 +0100
commit5ba1cb20fe6f6699cef1cc726718e760cd4c9af1 (patch)
treedf7b144c5325fd8b3c88c49b456fafc24249abe6 /doc/zmq_tcp.html
parenta15854bd92db69fcd0b4444fe1b8fe3610a7acf6 (diff)
Imported Upstream version 2.0.9.dfsgupstream/2.0.9.dfsg
Diffstat (limited to 'doc/zmq_tcp.html')
-rw-r--r--doc/zmq_tcp.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/doc/zmq_tcp.html b/doc/zmq_tcp.html
index 6a7ca72..38c2db7 100644
--- a/doc/zmq_tcp.html
+++ b/doc/zmq_tcp.html
@@ -600,17 +600,18 @@ colon and the TCP port number to use.</p></div>
<div class="ulist"><ul>
<li>
<p>
-The interface name as defined by the operating system.
+The wildcard <tt>*</tt>, meaning all available interfaces.
</p>
</li>
<li>
<p>
-The primary IPv4 address assigned to the interface, in it&#8217;s numeric representation.
+The primary IPv4 address assigned to the interface, in its numeric
+ representation.
</p>
</li>
<li>
<p>
-The wildcard <tt>*</tt>, meaning that the interface address is unspecified.
+The interface name as defined by the operating system.
</p>
</li>
</ul></div>
@@ -707,14 +708,14 @@ exceeding 254 octets:</p></div>
<div class="listingblock">
<div class="title">Assigning a local address to a socket</div>
<div class="content">
-<pre><tt>/* TCP port 5555 on the local loopback interface on all platforms */
+<pre><tt>/* TCP port 5555 on all available interfaces */
+rc = zmq_bind(socket, "tcp://*:5555");
+assert (rc == 0);
+/* TCP port 5555 on the local loopback interface on all platforms */
rc = zmq_bind(socket, "tcp://127.0.0.1:5555");
assert (rc == 0);
/* TCP port 5555 on the first ethernet network interface on Linux */
rc = zmq_bind(socket, "tcp://eth0:5555");
-assert (rc == 0);
-/* TCP port 5555 with an unspecified interface */
-rc = zmq_bind(socket, "tcp://*:5555");
assert (rc == 0);</tt></pre>
</div></div>
<div class="listingblock">
@@ -746,7 +747,8 @@ Martin Lucina &lt;<a href="mailto:mato@kotelna.sk">mato@kotelna.sk</a>&gt;.</p><
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2010-06-04 13:49:16 CEST
+ØMQ 2.0.9<br />
+Last updated 2010-09-06 07:11:47 CEST
</div>
</div>
</body>