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