- PQsetnonblocking Sets the state of the connection
- to non-blocking.
+ PQsetnonblocking Sets the nonblocking status of the
+ connection.
-int PQsetnonblocking(PGconn *conn)
+int PQsetnonblocking(PGconn *conn, int arg)
- this function will ensure that calls to
+ Sets the state of the connection to nonblocking if arg is TRUE,
+ blocking if arg is FALSE. Returns 0 if OK, -1 if error.
+
+ In the nonblocking state, calls to
PQputline, PQputnbytes,
PQsendQuery and PQendcopy
will not block but instead return an error if they need to be called