delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/07/07:50:23

X-Spam-Check-By: sourceware.org
Date: Thu, 7 Jun 2007 19:49:50 +0800
From: Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org>
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: <f45rfu$r9r$1 AT sea DOT gmane DOT org> <20070606085100 DOT GA5082 AT implementation> <4666819A DOT 52A6488D AT dessent DOT net> <20070606102654 DOT GA11636 AT calimero DOT vinschen DOT de> <announce DOT 20070605230831 DOT GC3356 AT implementation> <f45rfu$r9r$1 AT sea DOT gmane DOT org> <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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


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