Skip to content

Commit 4aca7b8

Browse files
committed
Merge pull request #1013 from hintjens/master
Problem: documentation is out of date
2 parents 4f664c4 + 8592e3d commit 4aca7b8

File tree

16 files changed

+106
-72
lines changed

16 files changed

+106
-72
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ To write an actor, use this template. Note that your actor is a single function
298298
zsock_signal (pipe, 0);
299299

300300
while (!self->terminated) {
301-
zsock_t *which = zpoller_wait (self->poller, -1);
301+
zsock_t *which = (zsock_t *) zpoller_wait (self->poller, -1);
302302
if (which == self->pipe)
303303
s_self_handle_pipe (self);
304304
else

api/zsock.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
<method name = "attach">
151151
Attach a socket to zero or more endpoints. If endpoints is not null,
152152
parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
153-
'@' (to bind the socket) or '>' (to attach the socket). Returns 0 if all
153+
'@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
154154
endpoints were valid, or -1 if there was a syntax error. If the endpoint
155155
does not start with '@' or '>', the serverish argument defines whether
156156
it is used to bind (serverish = true) or connect (serverish = false).

bindings/python/czmq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ def disconnect(self, format, *args):
18621862
def attach(self, endpoints, serverish):
18631863
"""Attach a socket to zero or more endpoints. If endpoints is not null,
18641864
parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
1865-
'@' (to bind the socket) or '>' (to attach the socket). Returns 0 if all
1865+
'@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
18661866
endpoints were valid, or -1 if there was a syntax error. If the endpoint
18671867
does not start with '@' or '>', the serverish argument defines whether
18681868
it is used to bind (serverish = true) or connect (serverish = false)."""

bindings/qml/src/QmlZsock.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ int QmlZsock::disconnect (const QString &format) {
6363
};
6464

6565
///
66-
// Attach a socket to zero or more endpoints. If endpoints is not null,
67-
// parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
68-
// '@' (to bind the socket) or '>' (to attach the socket). Returns 0 if all
69-
// endpoints were valid, or -1 if there was a syntax error. If the endpoint
70-
// does not start with '@' or '>', the serverish argument defines whether
71-
// it is used to bind (serverish = true) or connect (serverish = false).
66+
// Attach a socket to zero or more endpoints. If endpoints is not null,
67+
// parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
68+
// '@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
69+
// endpoints were valid, or -1 if there was a syntax error. If the endpoint
70+
// does not start with '@' or '>', the serverish argument defines whether
71+
// it is used to bind (serverish = true) or connect (serverish = false).
7272
int QmlZsock::attach (const QString &endpoints, bool serverish) {
7373
return zsock_attach (self, endpoints.toUtf8().data(), serverish);
7474
};

bindings/qml/src/QmlZsock.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ public slots:
6767
// isn't supported.
6868
int disconnect (const QString &format);
6969

70-
// Attach a socket to zero or more endpoints. If endpoints is not null,
71-
// parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
72-
// '@' (to bind the socket) or '>' (to attach the socket). Returns 0 if all
73-
// endpoints were valid, or -1 if there was a syntax error. If the endpoint
74-
// does not start with '@' or '>', the serverish argument defines whether
75-
// it is used to bind (serverish = true) or connect (serverish = false).
70+
// Attach a socket to zero or more endpoints. If endpoints is not null,
71+
// parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
72+
// '@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
73+
// endpoints were valid, or -1 if there was a syntax error. If the endpoint
74+
// does not start with '@' or '>', the serverish argument defines whether
75+
// it is used to bind (serverish = true) or connect (serverish = false).
7676
int attach (const QString &endpoints, bool serverish);
7777

7878
// Returns socket type as printable constant string.

bindings/ruby/lib/czmq/ffi/zsock.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ def disconnect format, result
232232
result
233233
end
234234

235-
# Attach a socket to zero or more endpoints. If endpoints is not null,
236-
# parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
237-
# '@' (to bind the socket) or '>' (to attach the socket). Returns 0 if all
238-
# endpoints were valid, or -1 if there was a syntax error. If the endpoint
239-
# does not start with '@' or '>', the serverish argument defines whether
240-
# it is used to bind (serverish = true) or connect (serverish = false).
235+
# Attach a socket to zero or more endpoints. If endpoints is not null,
236+
# parses as list of ZeroMQ endpoints, separated by commas, and prefixed by
237+
# '@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
238+
# endpoints were valid, or -1 if there was a syntax error. If the endpoint
239+
# does not start with '@' or '>', the serverish argument defines whether
240+
# it is used to bind (serverish = true) or connect (serverish = false).
241241
def attach endpoints, serverish
242242
raise DestroyedError unless @ptr
243243
endpoints = String(endpoints)

doc/asciidoc.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ literal-style=template="literalparagraph"
99
(?su)[\\]?(?P<name>linkczmq):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
1010

1111
ifdef::backend-docbook[]
12-
[linkfczmq-inlinemacro]
12+
[linkczmq-inlinemacro]
1313
{0%{target}}
1414
{0#<citerefentry>}
1515
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}

doc/zchunk.doc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ This is the class interface:
4949
CZMQ_EXPORT size_t
5050
zchunk_append (zchunk_t *self, const void *data, size_t size);
5151

52+
// Append user-supplied data to chunk, return resulting chunk size. If the
53+
// data would exceeed the available space, the chunk grows in size.
54+
CZMQ_EXPORT size_t
55+
zchunk_extend (zchunk_t *self, const void *data, size_t size);
56+
5257
// Copy as much data from 'source' into the chunk as possible; returns the
5358
// new size of chunk. If all data from 'source' is used, returns exhausted
5459
// on the source chunk. Source can be consumed as many times as needed until

doc/zchunk.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ CZMQ_EXPORT size_t
4949
CZMQ_EXPORT size_t
5050
zchunk_append (zchunk_t *self, const void *data, size_t size);
5151

52+
// Append user-supplied data to chunk, return resulting chunk size. If the
53+
// data would exceeed the available space, the chunk grows in size.
54+
CZMQ_EXPORT size_t
55+
zchunk_extend (zchunk_t *self, const void *data, size_t size);
56+
5257
// Copy as much data from 'source' into the chunk as possible; returns the
5358
// new size of chunk. If all data from 'source' is used, returns exhausted
5459
// on the source chunk. Source can be consumed as many times as needed until

doc/zframe.doc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ This is the class interface:
3131
CZMQ_EXPORT zframe_t *
3232
zframe_new_empty ();
3333

34+
// Create a frame with a specified string content.
35+
// The caller is responsible for destroying the return value when finished with it.
36+
CZMQ_EXPORT zframe_t *
37+
zframe_from (const char *string);
38+
3439
// Receive frame from socket, returns zframe_t object or NULL if the recv
3540
// was interrupted. Does a blocking recv, if you want to not block then use
3641
// zpoller or zloop.
@@ -78,8 +83,8 @@ This is the class interface:
7883
CZMQ_EXPORT int
7984
zframe_more (zframe_t *self);
8085

81-
// Set frame MORE indicator (1 or 0). Note this is NOT used when sending
82-
// frame to socket, you have to specify flag explicitly.
86+
// Set frame MORE indicator (1 or 0). Note this is NOT used when sending
87+
// frame to socket, you have to specify flag explicitly.
8388
CZMQ_EXPORT void
8489
zframe_set_more (zframe_t *self, int more);
8590

0 commit comments

Comments
 (0)