Where is the documentation?
theAkito opened this issue · comments
I am trying to implement libumqtt within a server written in Nim. I am not familiar with C, but I know how to use C libraries within Nim. To implement this type of libraries correctly, I need documentation on how the library works and what the procedures do in what way. Is there a way to generate documentation from this library or is there documentation I have missed, yet?
Please reference the example.
@zhaojh329 Well, I want the server to auto-subscribe to a topic with a specific name. Then, after successful subscription, I want the server to listen for incoming requests originating from the topic. So, taking this case as an example, what do I need to call from the library to make this happen?
libumqtt is a client library.
@zhaojh329
Every subscriber is a client, I assume? The main purpose for it being a server is that it runs all the time. Technically, it is still a client, since it is supposed to receive messages and not send them.
Here is what is supposed to happen:
- Server listening.
- Server gets message "print this comment".
- Server prints the comment.
- Done.
Please reference the example.
https://github.com/zhaojh329/libumqtt/tree/master/example