예제 #1
0
 public void Connect(string endpoint)
 {
     if (ZmqNative.connect(_handle, endpoint) == -1)
     {
         ZmqUtil.ThrowLastError($"Unable to connect ZMQ socket to {endpoint}");
     }
 }
예제 #2
0
파일: ZmqSocket.cs 프로젝트: ocoanet/Zebus
        public void Connect(string endpoint)
        {
            while (ZmqNative.connect(_handle, endpoint) == -1)
            {
                if (ZmqUtil.WasInterrupted())
                {
                    continue;
                }

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