pomp_conn_send

Function pomp_conn_send 

Source
pub unsafe extern "C" fn pomp_conn_send(
    conn: *mut pomp_conn,
    msgid: u32,
    fmt: *const c_char,
    ...
) -> c_int
Expand description

Format and send a message to the peer of the connection. @param conn : connection. @param msgid : message id. @param fmt : format string. Can be NULL if no arguments given. @param … : message arguments. @return 0 in case of success, negative errno value in case of error.

@remarks the operation will be queued automatically for later processing in case the underlying socket buffer is full. Use ‘pomp_ctx_set_socket_cb’ to have more information about completion.