[][src]Function qpid_proton_sys::pn_link_recv

pub unsafe extern "C" fn pn_link_recv(
    receiver: *mut pn_link_t,
    bytes: *const c_char,
    n: usize
) -> usize

Receive message data for the current delivery on a link. Use pn_delivery_pending on the current delivery to figure out how much buffer space is needed. Note that the link API can be used to stream large messages across the network, so just because there is no data to read does not imply the message is complete. To ensure the entirety of the message data has been read, either invoke pn_link_recv until PN_EOS is returned, or verify that (!pn_delivery_partial(d) && !pn_delivery_aborted(d) && pn_delivery_pending(d)==0)