I tried the Rust nanomsg pubsub example, but it does not work.
I did each of these operations in separate console windows:
cargo run --example pubsub -- device hoge
It shows
Subscribed to '[104, 111, 103, 101]'. Device is ready.
cargo run --example pubsub -- client hoge
It shows
Subscribed to '[104, 111, 103, 101]'.
cargo run --example pubsub -- server hoge
It shows
Server is ready. Published '[104, 111, 103, 101] #1'. Published '[104, 111, 103, 101] #2'. Published '[104, 111, 103, 101] #3'. ...
All three commands kept running, none of them exited. I expected console 2 to show:
Subscribed to '[104, 111, 103, 101]'.
Recv '[104, 111, 103, 101] #1'.
Recv '[104, 111, 103, 101] #2'.
Recv '[104, 111, 103, 101] #3'.
...
But nothing was displayed.
My environment is
- Max OS X Sierra
- nanomsg 1.0.0
- rustc 1.16.0