From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Non-blocking open-network-stream Date: 01 Mar 2002 01:21:39 +0100 Message-ID: <5xvgchkui4.fsf@kfs2.cua.dk> References: <5xwux64cxe.fsf@kfs2.cua.dk> <5xg03pyyo3.fsf@kfs2.cua.dk> <5xadtvuodz.fsf@kfs2.cua.dk> <200202280408.g1S48QG19264@aztec.santafe.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014942347 21958 195.204.10.66 (1 Mar 2002 00:25:47 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 1 Mar 2002 00:25:47 GMT Cc: helmut@212186011228.11.tuwien.teleweb.at, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16garq-0005i4-00 for ; Fri, 01 Mar 2002 01:25:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ganH-0004Vb-00; Thu, 28 Feb 2002 19:21:03 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian)) id 16gamr-0004UX-00; Thu, 28 Feb 2002 19:20:37 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 71C147C049; Fri, 1 Mar 2002 00:20:34 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <200202280408.g1S48QG19264@aztec.santafe.edu> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1647 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1647 Richard Stallman writes: > I think it would be much cleaner if (open-network-stream ... t) simply > returns nil if it doesn't support non-blocking connect. > > I think that is ok. The program could immediately try a blocking > connect if that is the right thing to do. I have committed the changes to process.c which add the non-blocking connect support to open-network-stream. The next "project" in this area is to add Helmut's server sockets. (do we have papers for that?) However, I think it can be done via open-network-stream: If the HOST argument is nil, a server socket is opened which accepts connections. The sentinel is called - with a newly created process - whenever a connections is accepted. There are some details to be worked out here, but we need to discuss whether we should use this approach or the approach suggested by Helmut. -- Kim F. Storm http://www.cua.dk _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel