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

                ZmqUtil.ThrowLastError($"Unable to bind ZMQ socket to {endpoint}");
            }
        }