public static void Connect(SocketBase s, String addr) { if (s == null || !s.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } s.Connect(addr); }
public static bool Connect(SocketBase s, String addr) { if (s == null || !s.CheckTag()) { throw new InvalidOperationException(); } return s.Connect(addr); }