擅长:python、mysql、java
<p>据我所知,0MQ不支持UDP。此外,IPC仅在具有POSIX规范的命名管道实现的操作系统上受支持;因此,在Windows上,您实际上只能使用“inproc”、TCP或PGM。然而,除此之外,0MQ的一个主要特性是您的协议只是地址的一部分。您可以举任何一个例子,更改套接字地址,一切都应该正常工作(当然,要遵守上述限制)。此外,<a href="http://zguide.zeromq.org/" rel="noreferrer">ZGuide</a>还有许多示例(其中有很多可在<a href="https://github.com/imatix/zguide/tree/master/examples/Python" rel="noreferrer">Python</a>中找到)。</p>