Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    teropes
    @teropes
    anyone here?
    Is the czmq home page example supposed to work?
    I just banged my head on the wall for several hours trying to get it compile, failing in zsock_t type not being found
    then tried some of the advanced examples from the cmzq guide repo and none of the examples use this zsock_t type and it cannot be even found in any of the header files included in libzmq or czmq
    so the question is: the home page hello world example is deprecated?
    shuangliyue
    @shuangliyue
    有人吗
    Kevin Sapper
    @sappo
    @teropes sorry for the late response
    Yes the czmq home page example is supposed to work.
    Which version of czmq are you using? And how did you install it?
    @shuangliyue 是! :)
    teropes
    @teropes
    @sappo no problem, it took only 4 years :D
    Nick Brown
    @nickbroon
    Can anyone offer me any insight into the cause/fix for the following compilation error?
    tumi8/vermont#129
    In file included from /home/user1/work/vermont/src/modules/ipfix/IpfixCollectorCfg.cpp:22:                              
    In file included from /home/user1/work/vermont/src/modules/ipfix/CollectorCfg.h:33:                                     
    In file included from /home/user1/work/vermont/src/modules/ipfix/IpfixReceiverZmq.hpp:32:                               
    In file included from /usr/include/czmq.h:37:                                                                           
    In file included from /usr/include/czmq_library.h:23:                                                                   
    /usr/include/czmq_prelude.h:665:13: error: cannot combine with previous 'int' declaration specifier                     
    typedef int SOCKET;                                                                                                     
                ^                                                                                                           
    /usr/include/pcap/socket.h:79:20: note: expanded from macro 'SOCKET'                                                    
        #define SOCKET int                                                                                                  
                       ^                                                                                                    
    1 error generated.
    Cassiel-girl
    @Cassiel-girl
    What does the statement "zsock_signal(pipe, 0)" do in the worker_task of lbbroker2 at https://zguide.zeromq.org/docs/chapter3/? And what is the meaning of the statement "zpoller_t *poll = zpoller_new(pipe, worker, NULL)"? Why does zpoller_new need to pass a pipe socket parameter?
    Cassiel-girl
    @Cassiel-girl
    Question1:Link https://zguide.zeromq.org/docs/chapter3/
    In the sentence "zpoller_t *poll = zpoller_new(pipe, worker, NULL)" of lbbroker2, who will send signals to this pipe?
    Question2: the last line in worker_task "zsock_signal(pipe, 0)", why is this line needed?
    Cassiel-girl
    @Cassiel-girl
    zpoller_set_nonstop(,true) what's the meaning when set to true?
    Cassiel-girl
    @Cassiel-girl
    Can zmq.Context() be called multiple times in the same process context?
    Cassiel-girl
    @Cassiel-girl
    How does zeromq enable reliable transmission from one sender to multiple receivers. pub/sub sockets seem to have packet loss issues, right?
    Cassiel-girl
    @Cassiel-girl

    from zmq import Socket
    mycontext = zmq.Context()
    class MySocket(Socket):

    #how to write this class?

    sock = MySocket()
    sock.xx()

    how to implement MySocket to use like socket defined in zmq.