Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make sure a vde switch is running before executing the example, otherwise it won't work!
repos/mpct
is a small example, using libmosquitto.It connects to a mosquitto server running on 192.168.100.254:1883 and publishes "Hello World" with an increasing iterator, which can be read by connecting another client (sample client provided by mosquitto) and subscribing on "mpct".
run/mpct
or just compile it by usingmake mpct
(don't forget to adapt the INC_DIR path in the target.mk file)Open points:
the sample example blocks after publishing a few messages (approx. 300 for me)random lwip error:
... [init -> mpct] Assertion "tcp_write: pbufs on queue => at least one queue non-empty" failed at /home/alex/Projects/genode/contrib/lwip-136ee70f33ffced072262d589c24ab3252d15eff/src/lib/lwip/src/core/tcp_out.c:340 [init -> mpct] void lwip_sleep_forever(): thread 2 ...
[init -> mpct] int socketpair(int, int, int, int*): socketpair not implemented
Maybe we can use the workaround used for windows builds
[init -> mpct] int _sigaction(int, const sigaction*, sigaction*): _sigaction not implemented
The only signal used is SIGPIPE, which is ignored for windows builds
[init -> mpct] read_rtc: rtc not configured, returning 0
rtc is not available on pbxa9 builds 馃啒