delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/24/09:45:07

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: winsup\tty.c
24 Mar 1998 09:45:07 -0800 :
Message-ID: <01BD53F0.ABDD85C0.cygnus.gnu-win32@gater.krystalbank.msk.ru>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'jaltman AT columbia DOT edu'" <jaltman AT columbia DOT edu>

Jeffrey Altman wrote:
> In tty.c there are complaints about the inability to do overlapped-io
> on anonymous pipes.  The solution is do not use pipes, use sockets.
> create a socketpair() function similar to that used on unix and then
> perform all of your pipe operations with sockets.  the benefits of
> select() on your code are unimaginable.

The disadvantages of socketpair() method:

1. It require tcp/ip to be installed. B19 can run on computers without 
tcp/ip installed.

2. B19 implements loading of wsock32.dll on demand to speed-up process 
startup about 20%. With socketpair() every running process will load 
wsock32.dll when tty support is enabled. The toolset will run _slower_ than 
now with pipe polling.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019