specify that groups shall be UTF8

group being a `char *` is logically a text type, which needs an encoding.

Declare in the API that groups shall be UTF8-encoded,
matching the `zmq_msg_gets` API, which is the other user-facing `char *` API,
which has the same definition.

This allows bindings to provide text-type APIs,
which they cannot do if arbitrary bytes are allowed
This commit is contained in:
Min RK 2017-08-17 16:12:53 +02:00
parent 1e393586c7
commit 3130b913fc

View File

@ -160,6 +160,7 @@ and each message sent by Radio sockets belong to a group.
Groups are null terminated strings limited to 16 chars length (including null).
The intention is to increase the length to 40 chars (including null).
The encoding of groups shall be UTF8.
Groups are matched using exact matching (vs prefix matching of PubSub).