【问题标题】:get OSC info back from the server从服务器获取 OSC 信息
【发布时间】:2018-06-16 13:20:50
【问题描述】:

我正在使用 pyOSC 并尝试将数据从 OSC 服务器获取回客户端。默认处理程序之一是“/info”。在 OSC 代码中,我在 serverInfo_handler 中看到以下注释:

    a Message-handler function may return None, but it could also return an OSCMessage (or OSCBundle),
    which then gets sent back to the client.

    This handler returns a reply to the client, which can contain various bits of information
    about this server, depending on the first argument of the received OSC-message:

但是如何在客户端获取这些信息呢?客户端没有读取或接收功能...

【问题讨论】:

    标签: server client osc info


    【解决方案1】:

    我发现最简单的方法是在目标机器上同时运行 OSC 客户端和服务器。这样,服务器部分可以处理消息,而客户端部分可以发回数据。这可以通过创建服务器和客户端线程在一个程序中完成。

    顺便说一句,我现在切换到 python-osc,非常好用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多