19.03.2012 19:40, Boris Gulay пишет:
> I want to limit socket internal queue to one message. To do that I call
> zmq_setsockopt with second argument set to one right after socket
> creation (socket type = PUSH).
> I use zlrzmq and I get an exception: Invalid argument. What I'm doing wrong?
I should call method this way:

zmqSocket.SetSockOpt(ZMQ.SocketOpt.HWM, (long)1);

Passing just one causes this exception. I believe interop code should
check option type and make appropriate casts.

> 
> 
> 
> 
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to