Search code examples
czeromqnetmq

How to use PollTimeout in NetMQ?


I can't find any documentation telling me how to use PollTimeout in NetMQ. Can it be used to detect a send or receive timeout? In case it can, how?


Solution

  • You can TrySendFrame and TryReceiveFrame which accept TimeSpan as timeout.

    However the stable release in nuget doesn't include them. So compile from master or use the latest pre version:

    http://www.nuget.org/packages/NetMQ/3.3.0.13-alpha622