| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера