Function librist_sys::rist_oob_callback_set[][src]

pub unsafe extern "C" fn rist_oob_callback_set(
    ctx: *mut rist_ctx,
    oob_callback: Option<unsafe extern "C" fn(arg: *mut c_void, oob_block: *const rist_oob_block) -> c_int>,
    arg: *mut c_void
) -> c_int

@brief Enable out-of-band data channel

Call after receiver initialization to enable out-of-band data.

@param ctx RIST context @param oob_callback A pointer to the function that will be called when out-of-band data comes in (NULL function pointer is valid) @param arg is an the extra argument passed to the oob_callback @return 0 on success, -1 on error