How to use Zeromq's inproc and ipc transports?

后端 未结 4 1027
故里飘歌
故里飘歌 2021-02-02 13:57

Im a newbie to ZERMQ. ZeroMQ has TCP, INPROC and IPC transports. I\'m looking for examples using python and inproc in Winx64 and python 2.7, which could also be used for linux.

4条回答
  •  庸人自扰
    2021-02-02 14:31

    If (and only if) you use the ZMQ_PUB or ZMQ_SUB sockets - which you don't do in the examples you gave, where you use ROUTER, XREQ, etc - you can use UDP, or more precisely, UDP multicast via

    "epgm://host:port"

    EPGM stands for Encapsulated PGM, i.e. PGM encapsulated in UDP, which is more compatible with existing network infrastructure than raw PGM.

    See also http://api.zeromq.org/2-1:zmq-pgm

    I don't know of any UDP support for unicast scenarios though.

提交回复
热议问题