예제 #1
0
 public static void Close(SocketBase s)
 {
     if (s == null || !s.CheckTag())
     {
         throw NetMQException.Create(ErrorCode.EFAULT);
     }
     s.Close();
 }
예제 #2
0
파일: ZMQ.cs 프로젝트: kamlesh-patel/netmq
 public static void Close(SocketBase s)
 {
     if (s == null || !s.CheckTag())
     {
         throw NetMQException.Create(ErrorCode.EFAULT);
     }
     s.Close();
 }
예제 #3
0
파일: ZMQ.cs 프로젝트: oskarwkarlsson/netmq
 public static void Close(SocketBase s)
 {
     if (s == null || !s.CheckTag())
     {
         throw new InvalidOperationException();
     }
     s.Close();
 }
예제 #4
0
 /// <summary>
 /// If there is a monitor-socket, close it and set monitor-events to 0.
 /// </summary>
 private void StopMonitor()
 {
     if (m_monitorSocket != null)
     {
         m_monitorSocket.Close();
         m_monitorSocket = null;
         m_monitorEvents = 0;
     }
 }