小编Ats*_*shi的帖子

nanomsg板条箱的示例不起作用

我尝试了Rust nanomsg pubsub示例,但它不起作用.

我在单独的控制台窗口中执行了以下每个操作:

  1. cargo run --example pubsub -- device hoge

    表明

    Subscribed to '[104, 111, 103, 101]'.
    Device is ready.
    
    Run Code Online (Sandbox Code Playgroud)
  2. cargo run --example pubsub -- client hoge

    表明

    Subscribed to '[104, 111, 103, 101]'.
    
    Run Code Online (Sandbox Code Playgroud)
  3. cargo run --example pubsub -- server hoge

    表明

    Server is ready.
    Published '[104, 111, 103, 101] #1'.
    Published '[104, 111, 103, 101] #2'.
    Published '[104, 111, 103, 101] #3'.
    ...
    
    Run Code Online (Sandbox Code Playgroud)

所有三个命令都继续运行,没有一个退出.我预计控制台2会显示:

Subscribed to '[104, 111, 103, 101]'.
Recv '[104, 111, 103, 101] #1'.
Recv …
Run Code Online (Sandbox Code Playgroud)

rust nanomsg

3
推荐指数
1
解决办法
175
查看次数

标签 统计

nanomsg ×1

rust ×1