Menu

Error 156384732 on getting socket identity

pktl
2018-07-04
2018-07-05
  • pktl

    pktl - 2018-07-04

    Hi everyone,

    I'm getting error 156384732 when I try to get the identity of a socket. Of course I set the identity previously without any error. According to your zmq-errors.txt this means "EINVAL: Invalid argument".

    I don't have much experience with zmq, yet. Maybe it's some basic misunderstanding. However, a quick test, doing the same in Python, runs without error...

    Edit: I'm using LV2016 and ZeroMQ Socket Library version 3.4.1.107.
    Edit 2: Nevermind... according to the guide, identity is only for router sockets.

     

    Last edit: pktl 2018-07-04
  • Martijn Jasperse

    Hey,
    Glad you figured it out; evidently it wasn't the same test you did in Python? According to the API docs (http://api.zeromq.org/4-2:zmq-setsockopt) the property only exists on ZMQ_REQ, ZMQ_REP, ZMQ_ROUTER, ZMQ_DEALER sockets... but I'm pretty sure it's used by other types too (e.g. ZMQ_PUB)

    Cheers

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.