Expand/Shrink

nopoll_conn_pending_write_bytes

Definition: include nopoll.e

integer bytes_pending = nopoll_conn_pending_write_bytes(atom conn)
Description: Check if there are pending write bytes.

The function returns the number of pending write bytes that are waiting to be flushed.
To do so you must call nopoll_conn_complete_pending_write().

conn: The connection to be checked to have pending bytes to be written.

Returns: The number of bytes pending to be written.
The function also returns 0 when conn reference received is NULL.
See Also: nopoll_conn_flush_writes