OSDN Git Service

This patch (against the current CVS sources) adds to libpq the functions
authorBruce Momjian <bruce@momjian.us>
Tue, 30 Nov 1999 03:08:19 +0000 (03:08 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 30 Nov 1999 03:08:19 +0000 (03:08 +0000)
commit3ab5b1f1e661840c191dbba9d2985c17766896ef
tree1e6930a252733bbe82704c72303623e1f4199249
parentd264b53d2fce4029754554e4dd2014af5e4c55be
This patch (against the current CVS sources) adds to libpq the functions

PQconnectStart
PQconnectPoll
PQresetStart
PQresetPoll
PQsetenvStart
PQsetenvPoll
PQsetenvAbort

and brings into the published interface

PQsetenv.

The first four are asynchronous analogues of PQconnectdb and PQreset -
they allow an application to connect to the DB without blocking on
remote I/O.

The PQsetenv functions perform an environment negotiation with the
server.

Internal to libpq, pqReadReady and pqWriteReady have been made available
across the library (they were previously static functions inside
fe-misc.c).  A lot of internal rearrangement has been necessary to
support these changes.

The API documentation has been updated also.

Caveats:

  o  The Windows code does not default to using non-blocking sockets,
since I have no documentation: Define WIN32_NON_BLOCKING_CONNECTIONS to
do that.

  o  The SSL code still blocks.

Ewan Mellor.
doc/src/sgml/libpq.sgml
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h