# nopoll_conn_complete_pending_write

Definition: | include nopoll.e integer bytes_written = nopoll_conn_complete_pending_write(atom conn)
Description: | 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. conn: The 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.
See Also: | nopoll_conn_flush_writes