Skip to main content

add_rx_msg_handler

Function add_rx_msg_handler 

pub unsafe extern "C" fn add_rx_msg_handler(
    handle: ClientHandle,
    handler: RxMsgHandlerFn,
    context: *mut c_void,
) -> Error
๐Ÿ‘ŽDeprecated:

ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds

Available on non-ag35 only.
Expand description

Adds a handler for receiving network events based on the provided event flag bitmask.

See event_register for more details on the event flag bitmask.

ยงImplementation notes

This function simply writes the provided handler and context into global variables. It is NOT protected against concurrent calls, so it is not thread-safe. Calling this function multiple times will overwrite the previously registered handler and context.

Calls:

  • ql_log_print