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: display-time, mail-icon and POP3 mailboxes Date: 13 Feb 2002 01:27:31 +0100 Message-ID: <5x4rkmfcp8.fsf@kfs2.cua.dk> References: <200202081357.g18Dvfw05454@aztec.santafe.edu> <5x1yfva7m8.fsf@kfs2.cua.dk> <5xn0yhrtye.fsf@kfs2.cua.dk> <200202111848.g1BIm0406891@aztec.santafe.edu> <5x3d07iojn.fsf@kfs2.cua.dk> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013560998 4793 195.204.10.66 (13 Feb 2002 00:43:18 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 13 Feb 2002 00:43:18 GMT Cc: ding@gnus.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16anW1-0001FD-00 for ; Wed, 13 Feb 2002 01:43:18 +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 16anGR-0000VA-00; Tue, 12 Feb 2002 19:27:11 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian)) id 16anFd-0000Tm-00 for ; Tue, 12 Feb 2002 19:26:21 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 7E9237C035; Wed, 13 Feb 2002 00:26:18 +0000 (GMT) Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 32 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:1055 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1055 prj@po.cwru.edu (Paul Jarc) writes: > storm@cua.dk (Kim F. Storm) wrote: > > I haven't debugged this specifically with emacs, but in other > > programs, it has been necessary to make connect non-blocking with > > fcntl(s,F_SETFL,O_NONBLOCK) and then use the writefds of select to > > know when the connect has completed (at least on GNU/Linux). > > See also . Nice summary, thanks! In any case, I think it would make sense for open-network-stream to have an optional 5th argument which serves two purposes: If it is omitted or nil, the current blocking connect is used. If it is non-nil, a non-blocking connect is attempted - if supported by the o/s (and the emacs code) - and when the connection is established, the argument (which must be a function) is called to initiate using the connection. The arguments to that function will probably be the process and buffer (this is still TBD). If the o/s (or emacs) does not support non-blocking connect, a blocking connect will be performed - and the supplied function will simply be called before open-network-stream returns (it may need an arg indicating whether a blocking or non-blocking connect was made to arrange for different things to happen when open-network-stream returns). -- Kim F. Storm http://www.cua.dk _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel