mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Merge pull request #4080 from ardrabczyk/docs-fixes
Fix a typo and wrong order of assert() in the examples
This commit is contained in:
commit
6f46375440
16
RELICENSE/ardrabczyk.md
Normal file
16
RELICENSE/ardrabczyk.md
Normal 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
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user