|
67 | 67 | #define Z_FEATURE_UNICAST_PEER 1 |
68 | 68 | #define Z_FEATURE_AUTO_RECONNECT 1 |
69 | 69 | #define Z_FEATURE_MULTICAST_DECLARATIONS 0 |
70 | | -#define Z_FEATURE_PERIODIC_TASKS 0 |
71 | 70 | #define Z_FEATURE_ADMIN_SPACE 0 |
72 | 71 |
|
73 | 72 | // End of CMake generation |
|
175 | 174 | #define Z_CONFIG_TLS_CONNECT_CERTIFICATE_BASE64_KEY 0x55 |
176 | 175 | #define Z_CONFIG_TLS_VERIFY_NAME_ON_CONNECT_KEY 0x56 |
177 | 176 |
|
| 177 | +/*------------------ Connect behaviour properties ------------------*/ |
| 178 | + |
| 179 | +/** |
| 180 | + * The timeout dedicated to establishing connections to configured |
| 181 | + * connect locators. |
| 182 | + * |
| 183 | + * Accepted values : `<int in milliseconds>`. |
| 184 | + * - `0` : no retry, try each locator once |
| 185 | + * - `>0` : retry retryable locators until timeout expires |
| 186 | + * - `-1` : retry indefinitely until a connection is established |
| 187 | + * |
| 188 | + * In client mode, this applies to the initial connection attempt and |
| 189 | + * requires at least one locator to succeed. |
| 190 | + * |
| 191 | + * In peer mode, this applies to the initial connection phase for |
| 192 | + * configured locators. |
| 193 | + * |
| 194 | + * Default value : `"0"` in client mode, `"-1"` in peer mode. |
| 195 | + */ |
| 196 | +#define Z_CONFIG_CONNECT_TIMEOUT_KEY 0x57 |
| 197 | +#define Z_CONFIG_CONNECT_TIMEOUT_CLIENT_DEFAULT "0" |
| 198 | +#define Z_CONFIG_CONNECT_TIMEOUT_PEER_DEFAULT "-1" |
| 199 | + |
| 200 | +/** |
| 201 | + * Indicates whether the application should fail if connection attempts |
| 202 | + * to configured connect locators do not succeed. |
| 203 | + * |
| 204 | + * Accepted values : `false`, `true`. |
| 205 | + * - `true` : fail if the connection phase does not establish the required connectivity |
| 206 | + * - `false` : allow the session to continue even if some connections fail |
| 207 | + * |
| 208 | + * In client mode, this requires at least one locator to be successfully connected. |
| 209 | + * |
| 210 | + * In peer mode, this applies to the initial connection phase for |
| 211 | + * configured locators. |
| 212 | + * |
| 213 | + * Default value : `"true"` in client mode, `"false"` in peer mode. |
| 214 | + */ |
| 215 | +#define Z_CONFIG_CONNECT_EXIT_ON_FAILURE_KEY 0x58 |
| 216 | +#define Z_CONFIG_CONNECT_EXIT_ON_FAILURE_CLIENT_DEFAULT "true" |
| 217 | +#define Z_CONFIG_CONNECT_EXIT_ON_FAILURE_PEER_DEFAULT "false" |
| 218 | + |
| 219 | +/*------------------ Listen behaviour properties ------------------*/ |
| 220 | + |
| 221 | +/** |
| 222 | + * The timeout dedicated to opening configured listen locators. |
| 223 | + * |
| 224 | + * Accepted values : `<int in milliseconds>`. |
| 225 | + * - `0` : no retry, try each locator once |
| 226 | + * - `>0` : retry retryable locators until timeout expires |
| 227 | + * - `-1` : retry indefinitely until a listener is established |
| 228 | + * |
| 229 | + * In peer mode, this applies to the initial listen phase for |
| 230 | + * configured locators. |
| 231 | + * |
| 232 | + * Default value : `"0"`. |
| 233 | + */ |
| 234 | +#define Z_CONFIG_LISTEN_TIMEOUT_KEY 0x59 |
| 235 | +#define Z_CONFIG_LISTEN_TIMEOUT_DEFAULT "0" |
| 236 | + |
| 237 | +/** |
| 238 | + * Indicates whether the application should fail if configured listen |
| 239 | + * locators cannot be opened. |
| 240 | + * |
| 241 | + * Accepted values : `false`, `true`. |
| 242 | + * - `true` : fail if the listen phase does not establish the required listeners |
| 243 | + * - `false` : allow the session to continue even if listen attempts fail |
| 244 | + * |
| 245 | + * In peer mode, this applies to the initial listen phase for |
| 246 | + * configured locators. |
| 247 | + * |
| 248 | + * Default value : `"true"`. |
| 249 | + */ |
| 250 | +#define Z_CONFIG_LISTEN_EXIT_ON_FAILURE_KEY 0x5A |
| 251 | +#define Z_CONFIG_LISTEN_EXIT_ON_FAILURE_DEFAULT "true" |
| 252 | + |
178 | 253 | /*------------------ Compile-time configuration properties ------------------*/ |
179 | 254 | /** |
180 | 255 | * Default length for Zenoh ID. Maximum size is 16 bytes. |
|
0 commit comments