public static string LastErrorString(int errorcode = 0) { if (errorcode == 0) { errorcode = Native.zmq_errno(); } var errormsgptr = zmq_strerror(errorcode); return(Marshal.PtrToStringAnsi(errormsgptr)); }
/// <summary> /// Should be called when a native zmq function returns error (-1) /// </summary> public static void ThrowZmqError(string context = null) { var error = Native.zmq_errno(); ThrowZmqError(error, context); }
public static int LastError() { var error = Native.zmq_errno(); return(error); }