nim-lang / nim-zmq

Nim ZMQ wrapper
https://nim-lang.github.io/nim-zmq/zmq.html
MIT License
67 stars 17 forks source link

Use pointer instead of cstring #23

Closed Clonkk closed 3 years ago

Clonkk commented 3 years ago

For payload message, using cstring can cause issue since it is possible for ZMQ PAyload to contains 0x00 byte (for example, when using XPUB / XSUB the unsubscribe message starts with 0x00).

It also cleans the examples and remove duplicates.