|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.53 2000/12/22 18:57:49 petere Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.54 2000/12/28 00:16:11 tgl Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="libpq-chapter">
|
@@ -1153,12 +1153,16 @@ connection to the backend.
|
1153 | 1153 | <itemizedlist>
|
1154 | 1154 | <listitem>
|
1155 | 1155 | <para>
|
1156 |
| - <function>PQsetnonblocking</function> Sets thestateof the connection |
1157 |
| -to non-blocking. |
| 1156 | + <function>PQsetnonblocking</function> Sets thenonblocking statusof the |
| 1157 | +connection. |
1158 | 1158 | <synopsis>
|
1159 |
| -int PQsetnonblocking(PGconn *conn) |
| 1159 | +int PQsetnonblocking(PGconn *conn, int arg) |
1160 | 1160 | </synopsis>
|
1161 |
| - this function will ensure that calls to |
| 1161 | + Sets the state of the connection to nonblocking if arg is TRUE, |
| 1162 | + blocking if arg is FALSE. Returns 0 if OK, -1 if error. |
| 1163 | + </para> |
| 1164 | + <para> |
| 1165 | + In the nonblocking state, calls to |
1162 | 1166 | <function>PQputline</function>, <function>PQputnbytes</function>,
|
1163 | 1167 | <function>PQsendQuery</function> and <function>PQendcopy</function>
|
1164 | 1168 | will not block but instead return an error if they need to be called
|
|