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: New patch for server sockets and datagram (UDP) support. Date: 08 Mar 2002 10:35:33 +0100 Message-ID: <5xg03bbdwa.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> <5xvgchkui4.fsf@kfs2.cua.dk> <200203012123.g21LNvS20494@aztec.santafe.edu> <5xofi1p7cz.fsf_-_@kfs2.cua.dk> <200203080909.g2899Jl02686@wijiji.santafe.edu> NNTP-Posting-Host: quimby.gnus.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby.gnus.org 1015580210 4451 80.91.224.244 (8 Mar 2002 09:36:50 GMT) X-Complaints-To: usenet@quimby.gnus.org NNTP-Posting-Date: 8 Mar 2002 09:36:50 GMT Cc: helmut@212186011228.11.tuwien.teleweb.at Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16jGny-00019h-00 for ; Fri, 08 Mar 2002 10:36:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16jGnS-0002Ke-00; Fri, 08 Mar 2002 04:36:18 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16jGlk-0002Ce-00 for ; Fri, 08 Mar 2002 04:34:32 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id BC8A67C047; Fri, 8 Mar 2002 09:34:30 +0000 (GMT) Original-To: emacs-devel@gnu.org In-Reply-To: <200203080909.g2899Jl02686@wijiji.santafe.edu> Original-Lines: 38 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:1801 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1801 Richard Stallman writes: > > Given that datagram streams are handled so differently at the user > level, would it be better to have a different function to open one? > I think my latest proposal for `make-network-process' with wrappers functions like open-datagram-client addresses this concern. > > + DEFVAR_LISP ("network-server-log-function", &Vnetwork_server_log_function, > + doc: /* Function called when accepting a network connecting. > + Arguments are SERVER, PROCESS, and MESSAGE, where SERVER is the server process, > + PROCESS is the new process for the connection, and MESSAGE is a string. */); > > Could you please explain more about this? I am wondering whether > having a single function to be called for all connections is the right > interface for the job. > Helmut suggested that I do this on a per-server basis; I'll look into that. > > For consistency, please have two separate functions > process-datagram-address and set-process-datagram-address. > The former should just return the current status; the latter > should set it, like the other set-process-... functions. > Ok, I will do that. The reason I made just one function is that I was concerned whether doing (setq old-address (process-datagram-address P)) (set-process-datagram-address P new-address) in two steps would be atomic. But since we don't accept input between those two, they will be atomic. -- Kim F. Storm http://www.cua.dk _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel