X-Spam-Check-By: sourceware.org Date: Thu, 7 Jun 2007 19:49:50 +0800 From: Samuel Thibault To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] New package: brltty 3.8 Message-ID: <20070607114950.GA3958@implementation> Mail-Followup-To: cygwin AT cygwin DOT com References: <20070606085100 DOT GA5082 AT implementation> <4666819A DOT 52A6488D AT dessent DOT net> <20070606102654 DOT GA11636 AT calimero DOT vinschen DOT de> <20070606085100 DOT GA5082 AT implementation> <4666819A DOT 52A6488D AT dessent DOT net> <20070606192445 DOT GG6500 AT implementation> <20070606201111 DOT GA2366 AT ednor DOT casa1 DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070606201111.GA2366@ednor.casa1.cgf.cx> User-Agent: Mutt/1.5.11 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, Christopher Faylor, le Wed 06 Jun 2007 16:11:11 -0400, a écrit : > On Thu, Jun 07, 2007 at 03:24:45AM +0800, Samuel Thibault wrote: > >Brian Dessent, le Wed 06 Jun 2007 02:42:50 -0700, a ?crit : > >> Yes, setup automatically selects everything in Base for installation, > > > >Ah, I didn't know that, is that documented somewhere?? > > Yes: http://cygwin.com/cygwin-ug-net/setup-net.html Mmm, maybe a short note in http://cygwin.com/setup.html would be useful? > >That would make programming less easy. Brltty can communicate with > >other (potentially non-cygwin) applications with tcp/ip (remotely) or > >local pipes (locally, more efficiently). For keeping compatibility > >with other applications for local pipes, windows pipes are used. > >Mixing cygwin sockets and windows local pipes is not particularly fun, > >so that's why we end up just using windows socket and > >WaitForMultipleObjects() in a separate thread. > > You haven't really described why the linux-like pipe() command is > inadequate for anything that an application needs. This application needs to communicate about accessibility with non-cygwin applications too. Does the linux-like pipe() map 1-1 to windows pipes? > Merely stating that "mixing cygwin sockets and windows local pipes is > not... fun" is not really an argument for not doing it. This was an euphemism for "using select is already tricky, mixing both a select() for cygwin sockets and WaitForMultipleObjects() for windows named pipes, and handle the different kinds of sockets, that would be a nightmare". Really, for the sake of maintainability, this is a lot simpler. > Unless there is good reason, the cygwin distribution really is > supposed to be comprised of programs which use the linux API. But when talking about communicating with other applications, we need to use windows interfaces when the linux API doesn't permit it, shouldn't we? Samuel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/