Обсуждение: PQnotifies & select

Поиск
Список
Период
Сортировка

PQnotifies & select

От
"Ken J. Wright"
Дата:
What handle(s) would I need to feed to select() to wait for a notification
which I can then pickup via PQnotifies()?

Ken



Re: [INTERFACES] PQnotifies & select

От
eem21@cam.ac.uk
Дата:
On 23 Sep, Ken J. Wright wrote:
> What handle(s) would I need to feed to select() to wait for a notification
> which I can then pickup via PQnotifies()?

PQsocket(conn), where conn is a pointer to your connection structure, I
think.

Ewan Mellor.



Re: [INTERFACES] PQnotifies & select

От
Tom Lane
Дата:
"Ken J. Wright" <ken@ori-ind.com> writes:
> What handle(s) would I need to feed to select() to wait for a notification
> which I can then pickup via PQnotifies()?

PQsocket(connobject) delivers the file descriptor, or -1 if there is no
open connection.  There is some doco about this in the current
documentation set, although I have to agree it's terse.
        regards, tom lane