pomp_ctx_set_socket_cb

Function pomp_ctx_set_socket_cb 

Source
pub unsafe extern "C" fn pomp_ctx_set_socket_cb(
    ctx: *mut pomp_ctx,
    cb: pomp_socket_cb_t,
) -> c_int
Expand description

Set the function to call when socket fd are created. This allows application to configure socket before it is used. @param ctx : context. @param cb : function to call when socket are created. 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.