Magnus Hagander wrote:
> > So, we need to replace the select'ing mechanism under Win32
> > (yech), or write a Win32 pipe() replacement that returns two
> > socket endpoints (good enough for our purposes), or
> something else...
> I think you want to be investigating
> WSAEventSelect() and then WaitForMultipleObjectsEx().
As Andrew Dunstan has more or less already stated, I'd rather mimic the Unix
paradigm (with, say, a pair of socket endpoints), or rejig the existing
code-base, than to solve this with Win32 API calls.
[FWIW, I wrote a kludgy replacement for pipe() under Win32 that did just
that (ie. connected and returned a pair of sockets). Not a line of the
existing code required changing...]
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
pgsql-hackers-win32 by date
|Next:||From: Claudio Natoli||Date: 2003-12-24 02:50:21|
|Subject: Proposed replacement for pipe under Win32|
|Previous:||From: Andrew Dunstan||Date: 2003-12-22 18:28:18|
|Subject: Re: [HACKERS] Current Win32 port status|