0

我正在使用 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:

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

4

1 回答 1

0

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

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

于 2018-10-21T10:14:18.867 回答