nopoll_bool nopoll_conn_wait_until_connection_ready ( noPollConn conn,
int  timeout 
)

Allows to implement a wait operation until the provided connection is ready or the provided timeout is reached.

Parameters
connThe connection that is being waited to be created.
timeoutThe timeout operation to limit the wait operation. Timeout is provided in seconds.
Returns
The function returns when the timeout was reached or the connection is ready. In the case the connection is ready when the function finished nopoll_true is returned, otherwise nopoll_false.

References nopoll_conn_is_ok(), nopoll_conn_is_ready(), nopoll_false, and nopoll_sleep().