Merge pull request #4080 from ardrabczyk/docs-fixes

Fix a typo and wrong order of assert() in the examples
This commit is contained in:
Luca Boccassi 2020-11-10 09:38:33 +00:00 committed by GitHub
commit 6f46375440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 6 deletions

16
RELICENSE/ardrabczyk.md Normal file
View File

@ -0,0 +1,16 @@
# Permission to Relicense under MPLv2 or any other OSI approved license chosen by the current ZeroMQ BDFL
This is a statement by Arkadiusz Drabczyk (ardrabczyk) that grants
permission to relicense his copyrights in the libzmq C++ library
(ZeroMQ) under the Mozilla Public License v2 (MPLv2) or any other Open
Source Initiative approved license chosen by the current ZeroMQ BDFL
(Benevolent Dictator for Life).
A portion of the commits made by the Github handle "ardrabczyk", with
commit author "Arkadiusz Drabczyk <arkadiusz@drabczyk.org>", are
copyright of Arkadiusz Drabczyk. This document hereby grants the
libzmq project team to relicense libzmq, including all past, present
and future contributions of the author listed above.
Arkadiusz Drabczyk
2020/11/10

View File

@ -56,7 +56,7 @@ The provided 'context' is invalid.
EXAMPLE
-------
.Setting a prefix on internal ZMQ threda names:
.Setting a prefix on internal ZMQ thread names:
----
void *context = zmq_ctx_new ();
const char prefix[] = "MyApp";

View File

@ -60,7 +60,7 @@ The provided 'context' is invalid.
EXAMPLE
-------
.Setting a prefix on internal ZMQ threda names:
.Setting a prefix on internal ZMQ thread names:
----
void *context = zmq_ctx_new ();
const char prefix[] = "MyApp";

View File

@ -74,9 +74,9 @@ EXAMPLE
----
// Create frontend and backend sockets
void *frontend = zmq_socket (context, ZMQ_ROUTER);
assert (backend);
void *backend = zmq_socket (context, ZMQ_DEALER);
assert (frontend);
void *backend = zmq_socket (context, ZMQ_DEALER);
assert (backend);
// Bind both sockets to TCP ports
assert (zmq_bind (frontend, "tcp://*:5555") == 0);
assert (zmq_bind (backend, "tcp://*:5556") == 0);

View File

@ -61,9 +61,9 @@ EXAMPLE
----
// Create frontend, backend and control sockets
void *frontend = zmq_socket (context, ZMQ_ROUTER);
assert (backend);
void *backend = zmq_socket (context, ZMQ_DEALER);
assert (frontend);
void *backend = zmq_socket (context, ZMQ_DEALER);
assert (backend);
void *control = zmq_socket (context, ZMQ_SUB);
assert (control);