pub unsafe extern "C" fn pomp_ctx_set_raw(
ctx: *mut pomp_ctx,
cb: pomp_ctx_raw_cb_t,
) -> c_intExpand description
Mark the context as raw. Internal message protocol serialization will not be used, only raw data can be sent/received. Connection/Disconnection events will be notified with the generic context event callback. message API. @param ctx : context. @param cb : function to call when data has been received. The userdata argument will be the same as the one set when creating the context. @return 0 in case of success, negative errno value in case of error.