|
1 | | -#pragma TextEncoding = "UTF-8" |
2 | | -#pragma rtGlobals=3 // Use modern global access method and strict wave access. |
3 | | -#pragma IgorVersion=8.0 |
| 1 | +#pragma TextEncoding="UTF-8" |
| 2 | +#pragma rtGlobals=3 // Use modern global access method and strict wave access. |
| 3 | +#pragma IgorVersion=6.37 |
4 | 4 |
|
5 | 5 | // This file is part of the `ZeroMQ-XOP` project and licensed under BSD-3-Clause. |
6 | 6 |
|
| 7 | +/// ** Define ZeroMQ Constants (for back-compatibility) for Igor8 case. ** |
| 8 | +#if igorVersion() >= 8 |
7 | 9 | /// @name Flags for zeromq_set() |
8 | 10 | /// @anchor ZeroMQSetFlags |
9 | 11 | ///@{ |
@@ -36,25 +38,62 @@ Constant ZeroMQ_INVALID_MESSAGE_FORMAT = 10009 |
36 | 38 | Constant ZeroMQ_INVALID_LOGGING_TEMPLATE = 10010 |
37 | 39 | Constant ZeroMQ_MESSAGE_FILTER_DUPLICATED = 10011 |
38 | 40 | Constant ZeroMQ_MESSAGE_FILTER_MISSING = 10012 |
| 41 | +Constant ZeroMQ_MESSAGE_INVALID_TYPE = 10013 |
39 | 42 | ///@} |
| 43 | +#endif |
40 | 44 |
|
41 | | -Constant REQ_SUCCESS = 0 |
42 | | -Constant REQ_UNKNOWN_ERROR = 1 |
43 | | -Constant REQ_INVALID_JSON_OBJECT = 3 |
44 | | -Constant REQ_INVALID_VERSION = 4 |
45 | | -Constant REQ_INVALID_OPERATION = 5 |
46 | | -Constant REQ_INVALID_OPERATION_FORMAT = 6 |
47 | | -Constant REQ_INVALID_MESSAGEID = 7 |
48 | | -Constant REQ_OUT_OF_MEMORY = 8 |
| 45 | +/// @name Flags for zeromq_set() |
| 46 | +/// @anchor ZeroMQSetFlags |
| 47 | +///@{ |
| 48 | +/// Sets the default flags (no debug, no ipv6, busy wait on receive) |
| 49 | +Constant ZMQ_SET_FLAGS_DEFAULT = 0x1 |
| 50 | +/// Enable debug output |
| 51 | +Constant ZMQ_SET_FLAGS_DEBUG = 0x2 |
| 52 | +/// Enable ipv6 support |
| 53 | +Constant ZMQ_SET_FLAGS_IPV6 = 0x4 |
| 54 | +/// Don't do busy waiting on zeromq_server_recv() and zeromq_client_recv() |
| 55 | +/// instead immediately return if no messages are available. |
| 56 | +Constant ZMQ_SET_FLAGS_NOBUSYWAITRECV = 0x8 |
| 57 | +/// Log incoming and outgoing messages |
| 58 | +Constant ZMQ_SET_FLAGS_LOGGING = 0x10 |
| 59 | + |
| 60 | +///@} |
| 61 | + |
| 62 | +StrConstant ZMQ_HEARTBEAT = "heartbeat" |
| 63 | + |
| 64 | +/// @name Error codes |
| 65 | +/// @anchor ZeroMQErrorCodes |
| 66 | +///@{ |
| 67 | +Constant ZMQ_UNKNOWN_SET_FLAG = 10003 |
| 68 | +Constant ZMQ_INTERNAL_ERROR = 10004 |
| 69 | +Constant ZMQ_INVALID_ARG = 10005 |
| 70 | +Constant ZMQ_HANDLER_ALREADY_RUNNING = 10006 |
| 71 | +Constant ZMQ_HANDLER_NO_CONNECTION = 10007 |
| 72 | +Constant ZMQ_MISSING_PROCEDURE_FILES = 10008 |
| 73 | +Constant ZMQ_INVALID_MESSAGE_FORMAT = 10009 |
| 74 | +Constant ZMQ_INVALID_LOGGING_TEMPLATE = 10010 |
| 75 | +Constant ZMQ_MESSAGE_FILTER_DUPLICATED = 10011 |
| 76 | +Constant ZMQ_MESSAGE_FILTER_MISSING = 10012 |
| 77 | +Constant ZMQ_MESSAGE_INVALID_TYPE = 10013 |
| 78 | +///@} |
| 79 | + |
| 80 | +Constant REQ_SUCCESS = 0 |
| 81 | +Constant REQ_UNKNOWN_ERROR = 1 |
| 82 | +Constant REQ_INVALID_JSON_OBJECT = 3 |
| 83 | +Constant REQ_INVALID_VERSION = 4 |
| 84 | +Constant REQ_INVALID_OPERATION = 5 |
| 85 | +Constant REQ_INVALID_OPERATION_FORMAT = 6 |
| 86 | +Constant REQ_INVALID_MESSAGEID = 7 |
| 87 | +Constant REQ_OUT_OF_MEMORY = 8 |
49 | 88 | // error codes for CallFunction class |
50 | | -Constant REQ_PROC_NOT_COMPILED = 100 |
51 | | -Constant REQ_NON_EXISTING_FUNCTION = 101 |
52 | | -Constant REQ_TOO_FEW_FUNCTION_PARAMS = 102 |
53 | | -Constant REQ_TOO_MANY_FUNCTION_PARAMS = 103 |
54 | | -Constant REQ_UNSUPPORTED_FUNC_SIG = 104 |
55 | | -Constant REQ_UNSUPPORTED_FUNC_RET = 105 |
56 | | -Constant REQ_INVALID_PARAM_FORMAT = 106 |
57 | | -Constant REQ_FUNCTION_ABORTED = 107 |
| 89 | +Constant REQ_PROC_NOT_COMPILED = 100 |
| 90 | +Constant REQ_NON_EXISTING_FUNCTION = 101 |
| 91 | +Constant REQ_TOO_FEW_FUNCTION_PARAMS = 102 |
| 92 | +Constant REQ_TOO_MANY_FUNCTION_PARAMS = 103 |
| 93 | +Constant REQ_UNSUPPORTED_FUNC_SIG = 104 |
| 94 | +Constant REQ_UNSUPPORTED_FUNC_RET = 105 |
| 95 | +Constant REQ_INVALID_PARAM_FORMAT = 106 |
| 96 | +Constant REQ_FUNCTION_ABORTED = 107 |
58 | 97 |
|
59 | 98 | /// @name Functions which might be useful for outside callers |
60 | 99 | /// @anchor ZeroMQInterfaceFunctions |
|
0 commit comments