public static void Close(SocketBase s) { if (s == null || !s.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } s.Close(); }
public static void Close(SocketBase s) { if (s == null || !s.CheckTag()) { throw new InvalidOperationException(); } s.Close(); }
/// <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; } }