pub unsafe extern "C" fn csp_transaction_persistent(
conn: *mut csp_conn_t,
timeout: u32,
outbuf: *const c_void,
outlen: c_int,
inbuf: *mut c_void,
inlen: c_int,
) -> c_intExpand description
Perform an entire request & reply transaction on an existing connection. Send \a outbuf, wait for reply and copy reply to \a inbuf.
@param[in] conn connection @param[in] timeout timeout in mS to wait for a reply @param[in] outbuf outgoing data (request) @param[in] outlen length of data in \a outbuf (request) @param[out] inbuf user provided buffer for receiving data (reply) @param[in] inlen length of expected reply, -1 for unknown size (inbuf MUST be large enough), 0 for no reply. @return 1 or reply size on success, 0 on failure (error, incoming length does not match, timeout)