pomp_ctx_connect

Function pomp_ctx_connect 

Source
pub unsafe extern "C" fn pomp_ctx_connect(
    ctx: *mut pomp_ctx,
    addr: *const sockaddr,
    addrlen: u32,
) -> c_int
Expand description

Start a client. If connection can not be completed immediately, it will try again later automatically. Call pomp_ctx_stop to disconnect and stop everything. @param ctx : context. @param addr : remote address to connect to. @param addrlen : remote address size. @return 0 in case of success, negative errno value in case of error.