From ded0d83e4737607176f1de97d993edea165d2bcc Mon Sep 17 00:00:00 2001 From: JaeSang Yoo Date: Sat, 7 Mar 2020 14:55:01 +0900 Subject: [PATCH] Problem: wildcard address with udp not mentioned * UDP is mentioned as available transport, and it also supports wildcard addresses, but not mentioned * zmq_unbind(7) also mentions about wild-card endpoint in zmq_bind(3) Solution: add udp in wildcard address related docs --- doc/zmq_bind.txt | 5 +++-- doc/zmq_unbind.txt | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/zmq_bind.txt b/doc/zmq_bind.txt index 79ec10aa..6e3f4cc1 100644 --- a/doc/zmq_bind.txt +++ b/doc/zmq_bind.txt @@ -34,8 +34,9 @@ Every 0MQ socket type except 'ZMQ_PAIR' supports one-to-many and many-to-one semantics. The precise semantics depend on the socket type and are defined in linkzmq:zmq_socket[3]. -The 'ipc', 'tcp' and 'vmci' transports accept wildcard addresses: see linkzmq:zmq_ipc[7], -linkzmq:zmq_tcp[7] and linkzmq:zmq_vmci[7] for details. +The 'ipc', 'tcp', 'vmci' and 'udp' transports accept wildcard addresses: see +linkzmq:zmq_ipc[7], linkzmq:zmq_tcp[7], linkzmq:zmq_vmci[7] and +linkzmq:zmq_udp[7] for details. NOTE: the address syntax may be different for _zmq_bind()_ and _zmq_connect()_ especially for the 'tcp', 'pgm' and 'epgm' transports. diff --git a/doc/zmq_unbind.txt b/doc/zmq_unbind.txt index 92e9b7ed..1ae33b18 100644 --- a/doc/zmq_unbind.txt +++ b/doc/zmq_unbind.txt @@ -28,9 +28,9 @@ The 'endpoint' argument is as described in linkzmq:zmq_bind[3] Unbinding wild-card address from a socket ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When wild-card `*` 'endpoint' (described in linkzmq:zmq_tcp[7], -linkzmq:zmq_ipc[7] and linkzmq:zmq_vmci[7]) was used in _zmq_bind()_, the caller should use -real 'endpoint' obtained from the ZMQ_LAST_ENDPOINT socket option -to unbind this 'endpoint' from a socket. +linkzmq:zmq_ipc[7], linkzmq:zmq_udp[7] and linkzmq:zmq_vmci[7]) was used in +_zmq_bind()_, the caller should use real 'endpoint' obtained from the +ZMQ_LAST_ENDPOINT socket option to unbind this 'endpoint' from a socket. RETURN VALUE ------------