Skip to main content

q_conn_send

Function q_conn_send 

Source
pub unsafe extern "C" fn q_conn_send(
    poll: *mut ray_poll_t,
    id: i64,
    msg: *mut ray_t,
) -> *mut ray_t
Expand description

Sync round-trip on an attached connection: write a SYNC frame, then pump this connection until its RESPONSE arrives — dispatching, not swallowing, any frame that arrives in between. So a bound handler can fire before this returns. Returns a freshly-owned object, possibly a RAY_ERROR. Refuses a nested call from inside a handler.