From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> |
Cc: | "Magnus Hagander" <mha(at)sollentuna(dot)net>, "'David Giffin'" <david(at)agent911(dot)com>, "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>, pgsql-interfaces(at)postgreSQL(dot)org |
Subject: | Re: [INTERFACES] Win32 interface |
Date: | 1999-09-06 14:54:47 |
Message-ID: | 17113.936629687@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 1999-09-06 15:01:05 | RE: [INTERFACES] Win32 interface |
Previous Message | Jelle Ruttenberg | 1999-09-06 13:39:58 | Is there a psqlODBC for the Mac? |