Re: [INTERFACES] libpq sockets on win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: jeff(at)jeffjohnson(dot)net, pgsql-interfaces(at)postgresql(dot)org, pgsql-docs(at)postgresql(dot)org
Subject: Re: [INTERFACES] libpq sockets on win32
Date: 2001-06-04 18:32:17
Message-ID: 200106041832.f54IWHD00108@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-interfaces

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> This article describes the problem and work around.
> >> http://msdn.microsoft.com/library/psdk/winsock/ovrvw3_26ia.htm
>
> > I can't read that web site under Netscape.
>
> Comes up fine for me (maybe you need to turn off Javascript?)

Thanks, that fixed it.

> However, the advice on it seems to be written by someone who does not
> know the difference between a variable and a function :-(. Read with
> a large grain of salt.
>
> We already have a couple of #ifdef'd usages of WSAGetLastError() in
> libpq, but it's quite unclear which other references to errno might
> need to be changed. A blanket replacement of errno would certainly
> break things.

That's why I recommended brackets of #define/#undef around tests of
socket errno's.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Jeff Johnson 2001-06-04 19:03:35 RE: [INTERFACES] libpq sockets on win32
Previous Message Tom Lane 2001-06-04 18:29:38 Re: [INTERFACES] libpq sockets on win32

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jeff Johnson 2001-06-04 19:03:35 RE: [INTERFACES] libpq sockets on win32
Previous Message Tom Lane 2001-06-04 18:29:38 Re: [INTERFACES] libpq sockets on win32