From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: New patch for server sockets and datagram (UDP) support. Date: Thu, 7 Mar 2002 16:18:11 +0100 Message-ID: <200203071518.QAA17238@xaital.online-marketwatch.com> 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> <200203012123.g21LNvS20494@aztec.santafe.edu> <5xofi1p7cz.fsf_-_@kfs2.cua.dk> <5xg03cprxi.fsf@kfs2.cua.dk> Reply-To: Helmut Eller NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1015514939 16296 195.204.10.66 (7 Mar 2002 15:28:59 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 7 Mar 2002 15:28:59 GMT Cc: 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 16izpC-0004Ek-00 for ; Thu, 07 Mar 2002 16:28:58 +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 16izha-0003SB-00; Thu, 07 Mar 2002 10:21:06 -0500 Original-Received: from 212186011228.11.tuwien.teleweb.at ([212.186.11.228] helo=xaital.online-marketwatch.com) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16izeq-0003Gz-00 for ; Thu, 07 Mar 2002 10:18:17 -0500 Original-Received: (from helmut@localhost) by xaital.online-marketwatch.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id QAA17238; Thu, 7 Mar 2002 16:18:11 +0100 X-Authentication-Warning: xaital.online-marketwatch.com: helmut set sender to e9626484@stud3.tuwien.ac.at using -f Original-To: storm@cua.dk In-reply-to: <5xg03cprxi.fsf@kfs2.cua.dk> (storm@cua.dk) 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:1783 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1783 storm@cua.dk (Kim F. Storm) writes: > What do you think? You are adding many features at the same time; it's a bit hard to see what your problem actually is :-) I think it's a _very good_ idea to rename open-network-stream to something different, because this frees you from being backward compatible. Have you considered to use keyword arguments, e.g., in the spirit of the make-socket function found in Allegro CL? It's probably a pain to parse keyword arguments in C, but it frees you from overloading positional arguments in an unnatural way. It would also be quite nice to use from Lisp. Another advantage is that you could add new arguments without much backward compatibility restrictions. Another point: if someone wants to bind a socket to a specific interface he must be able to specify the IP address, the hostname is IMHO not sufficient for this. Any ideas for this problem? I propose to make gethostbyname and related functions available to Lisp. IP addresses could be represented by vectors of 4 bytes (it's a pity that 32bit don't fit into a ELisp fixnum). Yet another point: please, please, please make accept-connection a separate function. Then one could make a _blocking_ accept; also accept with a timeout argument would be possible. Would this add any implementation complexity? Helmut. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel