int nopoll_conn_complete_pending_write ( noPollConn conn)

Allows to call to complete last pending write process that may be pending from a previous uncompleted write operation.

The function returns the number of bytes that were written.

Parameters
connThe connection where the pending write operation operation will take place. In the case conn == NULL is received, 0 is returned. Keep in mind this.
Returns
In the case no pending write is in place, the function returns 0. Otherwise, the function returns the pending bytes that were written. The function returns -1 in the case of failure.

You can call this function as many times as you want until you get a 0. You can view it as a flush operation.

References nopoll_free(), NOPOLL_LEVEL_DEBUG, and NOPOLL_LEVEL_WARNING.

Referenced by nopoll_conn_flush_writes().