Re: [INTERFACES] Win32 interface

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] Win32 interface
Дата
Msg-id 17113.936629687@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: [INTERFACES] Win32 interface  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Список pgsql-interfaces
"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
>> ISTM there was some reason it wouldn't work, like maybe you can
>> only call WSAStartup once per program, but I don't recall for sure.

> We can call WSAStartup() more than once. However,there must be a
> call to WSACleanup() for every successful call to WSAStartup()
> made by a task. Only the final WSACleanup() for that task does the
> actual cleanup.
>
> The simplest way may be to call WSAStartup() while connecting and 
> to call WSACleanup() while finishing(including error cases).

That would be an easy change.  Are these functions fast enough that
calling them for every connect/disconnect cycle would be tolerable?
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Jelle Ruttenberg
Дата:
Сообщение: Is there a psqlODBC for the Mac?
Следующее
От: Magnus Hagander
Дата:
Сообщение: RE: [INTERFACES] Win32 interface