[][src]Function qpid_proton_sys::pn_messenger_recv

pub unsafe extern "C" fn pn_messenger_recv(
    messenger: *mut pn_messenger_t,
    limit: i32
) -> i32

Retrieve messages into a messenger's incoming queue. Instructs a messenger to receive up to limit messages into the incoming message queue of a messenger. If limit is -1, the messenger will receive as many messages as it can buffer internally. If the messenger is in blocking mode, this call will block until at least one message is available in the incoming queue. Each call to pn_messenger_recv replaces the previous receive operation, so pn_messenger_recv(messenger, 0) will cancel any outstanding receive. After receiving messages onto your incoming queue use pn_messenger_get() to access message content.