From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.devel Subject: Re: Non-blocking open-network-stream Date: 03 Mar 2002 17:44:31 +0100 Message-ID: <87it8d8uts.fsf@home.delysid.org> References: <5xwux64cxe.fsf@kfs2.cua.dk> <5xg03pyyo3.fsf@kfs2.cua.dk> <5xadtvuodz.fsf@kfs2.cua.dk> <200202280408.g1S48QG19264@aztec.santafe.edu> <5xvgchkui4.fsf@kfs2.cua.dk> <200203020759.IAA18231@xaital.online-marketwatch.com> <5xr8n2o6g7.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 1015170662 12394 195.204.10.66 (3 Mar 2002 15:51:02 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 3 Mar 2002 15:51:02 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16hYGL-0003Dh-00 for ; Sun, 03 Mar 2002 16:51:01 +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 16hYAb-0004m5-00; Sun, 03 Mar 2002 10:45:05 -0500 Original-Received: from 212186194223.graz.teleweb.at ([212.186.194.223] helo=home.delysid.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16hY9y-0004fe-00 for ; Sun, 03 Mar 2002 10:44:27 -0500 Original-Received: from mlang by home.delysid.org with local (Exim 3.32 #1 (Debian)) id 16hZ68-0005rK-00 for ; Sun, 03 Mar 2002 17:44:32 +0100 Original-To: emacs-devel@gnu.org In-Reply-To: <5xr8n2o6g7.fsf@kfs2.cua.dk> Original-Lines: 33 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 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:1705 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1705 storm@cua.dk (Kim F. Storm) writes: > I intent do rename the NON-BLOCKING argument to a more generic TYPE > argument. Eventually, it could be things like: > > If HOST specified - connect to that host: > > nil - blocking connect (tcp) to SERVICE on HOST > t - non-blocking connect (tcp) to SERVICE on HOST > udp - open udp socket with target SERVICE on HOST > unix - connect to unix socket on address SERVICE > > If HOST is nil - open a server socket: > > nil - open tcp socket listning on SERVICE port > t - same as nil > udp - open udp socket bound to SERVICE port > unix - open unix socket bound to address SERVICE Isn't this quite limiting? What comes into mind first is that binding a server socket to a specific interface is not possible then. Also, as I discussed privately with Helmut, it should be possible to specify either 0 or nil (not sure) for the PORT to be able to assign a arbitrary free port (dynamic server socket for e.g. DCC). I didn't look very closely at both approaches yet, but it seems to me from first impression that merging non-blocking connects and server sockets into one single function is quite messy. -- CYa, Mario _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel