public void Bind(string endpoint) { if (ZmqNative.bind(_handle, endpoint) == -1) { ZmqUtil.ThrowLastError($"Unable to bind ZMQ socket to {endpoint}"); } }
public void Bind(string endpoint) { while (ZmqNative.bind(_handle, endpoint) == -1) { if (ZmqUtil.WasInterrupted()) { continue; } ZmqUtil.ThrowLastError($"Unable to bind ZMQ socket to {endpoint}"); } }