~ubuntu-branches/ubuntu/saucy/zeromq3/saucy

« back to all changes in this revision

Viewing changes to doc/zmq_bind.3

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-10-16 19:49:30 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20121016194930-98r0bi746eoaa4iv
Tags: 3.2.1~rc2+dfsg-1
* New upstream RC release (Closes: #690704)
* Bump Standards-Version to 3.9.4 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
'\" t
2
2
.\"     Title: zmq_bind
3
3
.\"    Author: [see the "AUTHORS" section]
4
 
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
 
.\"      Date: 06/05/2012
 
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
 
5
.\"      Date: 10/15/2012
6
6
.\"    Manual: 0MQ Manual
7
 
.\"    Source: 0MQ 3.2.0
 
7
.\"    Source: 0MQ 3.2.1
8
8
.\"  Language: English
9
9
.\"
10
 
.TH "ZMQ_BIND" "3" "06/05/2012" "0MQ 3\&.2\&.0" "0MQ Manual"
 
10
.TH "ZMQ_BIND" "3" "10/15/2012" "0MQ 3\&.2\&.1" "0MQ Manual"
11
11
.\" -----------------------------------------------------------------
12
12
.\" * Define some portability stuff
13
13
.\" -----------------------------------------------------------------
64
64
\fBzmq_pgm\fR(7)
65
65
.RE
66
66
.sp
67
 
With the exception of \fIZMQ_PAIR\fR sockets, a single socket may be connected to multiple endpoints using \fIzmq_connect()\fR, while simultaneously accepting incoming connections from multiple endpoints bound to the socket using \fIzmq_bind()\fR\&. Refer to \fBzmq_socket\fR(3) for a description of the exact semantics involved when connecting or binding a socket to multiple endpoints\&.
 
67
ZeroMQ sockets support one\-to\-many and many\-to\-one semantics\&. With the exception of \fIZMQ_PAIR\fR sockets every ZeroMQ socket type supports being bound with \fIzmq_bind()\fR as a singular endpoint or connecting with \fIzmq_connect()\fR as one of many endpoints\&. This allows combinations such as 1 ZMQ_REP to 100 ZMQ_REP and 100 ZMQ_REQ to 1 ZMQ_REP socket connections\&. Refer to \fBzmq_socket\fR(3) for a description of the exact semantics involved when connecting or binding a socket to multiple endpoints\&.
68
68
.SH "RETURN VALUE"
69
69
.sp
70
70
The \fIzmq_bind()\fR function shall return zero if successful\&. Otherwise it shall return \-1 and set \fIerrno\fR to one of the values defined below\&.