Function gnunet_sys::GNUNET_MST_next[][src]

pub unsafe extern "C" fn GNUNET_MST_next(
    mst: *mut GNUNET_MessageStreamTokenizer,
    one_shot: c_int
) -> c_int

Obtain the next message from the @a mst, assuming that there are more unprocessed messages in the internal buffer of the @a mst.

@param mst tokenizer to use @param one_shot only call callback once, keep rest of message in buffer @return #GNUNET_OK if we are done processing (need more data) #GNUNET_NO if one_shot was set and we have another message ready #GNUNET_SYSERR if the data stream is corrupt