On Windows 7 & using Visual Studio 2013 with a 64bit build of zeromq 4.1.0.5
to link against I'm compiling a 64bit application (c++).  All seems to work
well, sockets are communicating, except the application is giving the error:

 

Socket_1pt1: Socket: Error Setting Linger Value: consumer_subscriber Invalid
argument

 

Generated by the code:

 

//LINGER

                                int linger(0);

                                size_t linger_size = sizeof(&linger);

                                rv = zmq_setsockopt(sock, ZMQ_LINGER,
&linger, linger_size);//N.B. rv is an int.

                                if (rv != 0)

                                {

                                                std::string errStr =
zmq_strerror(zmq_errno());

                                                std::string errConc =
"Socket: Error Setting Linger Value: " + name + " " + errStr;

                                                TextOutput(errConc);;

                                }

                                else

                                {

                                                std::string errConc =
"Socket: LINGER VALUE SET: " + name + " ";

                                                TextOutput(errConc);;

                                }

 

Anyone know what's wrong here?  Incidentally, the same code does not give an
error under a 32 bit build configuration.

 

Thanks,

 

Riskybiz

_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to