Function rusteron_archive::bindings::aeron_cnc_init
source · pub unsafe extern "C" fn aeron_cnc_init(
aeron_cnc: *mut *mut aeron_cnc_t,
base_path: *const c_char,
timeout_ms: i64,
) -> c_int
Expand description
Initialise an aeron_cnc, which gives user level access to the command and control file used to communicate with the media driver. Will wait until the media driver has loaded and the cnc file is created, up to timeout_ms. Use a value of 0 for a non-blocking initialisation.
@param aeron_cnc to hold the loaded aeron_cnc @param base_path media driver’s base path @param timeout_ms Number of milliseconds to wait before timing out. @return 0 on success, -1 on failure.