Re: [HACKERS] Current Win32 port status

Поиск
Список
Период
Сортировка
От Claudio Natoli
Тема Re: [HACKERS] Current Win32 port status
Дата
Msg-id A02DEC4D1073D611BAE8525405FCCE2B0280A4@harris.memetrics.local
обсуждение исходный текст
Список pgsql-hackers-win32

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...]

Cheers,
Claudio


---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] Current Win32 port status
Следующее
От: Dru
Дата:
Сообщение: hello