int nopoll_conn_read_pending ( noPollConn conn)

Allows to check if the are pending bytes to be read on the provided connection and that are retained in internal buffers so the socket associated will not report pending content.

See nopoll_conn_read documentation to know more about this function. This API is not useful if you are not using nopoll_conn_read (stream oriented APi).

Parameters
connThe connection where the operation takes place
Returns
The amount of bytes pendings to be read (and a confirmation that bytes are pending to be read) or 0 if nothing is pending.