clrzmq icon indicating copy to clipboard operation
clrzmq copied to clipboard

ZmqSocket.Bind hides return value

Open aaronlerch opened this issue 12 years ago • 0 comments

ZmqSocket.Bind(...) (in /src/ZeroMQ/ZmqSocket.cs) validates the return value but swallows it and returns null. In this case, the zmq API returns the actual bound port as the result (when successful) and that should be passed back via the C# API as well. This is for situations when you bind to, for example, "tcp://:" which selects an ephemeral port.

I am not aware of any workarounds, but if there are some, I would appreciate hearing about it!

Thanks!

aaronlerch avatar Dec 31 '12 20:12 aaronlerch