pomp_ctx_set_read_buffer_len

Function pomp_ctx_set_read_buffer_len 

Source
pub unsafe extern "C" fn pomp_ctx_set_read_buffer_len(
    ctx: *mut pomp_ctx,
    len: usize,
) -> c_int
Expand description

Set the context default read buffer length. For server and client contexts, this value can be overriden for each connection with pomp_conn_set_read_buffer_len. @note The default read buffer length is 4096 bytes. @note Read buffers of existing connections are not affected by this function, use pomp_conn_set_read_buffer_len() instead for them. @param ctx : context. @param len : the length in bytes of the read buffer. @return 0 in case of success, negative errno value in case of error.