[zeromq-dev] Limit socket queue size

Boris Gulay boris at boressoft.ru
Mon Mar 19 16:48:22 CET 2012


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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120319/131fb16e/attachment.sig>


More information about the zeromq-dev mailing list