emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Local interface used for outbound network connections


From: Kim F. Storm
Subject: Re: Local interface used for outbound network connections
Date: 08 Jan 2003 17:54:44 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

I wrote:

> You may thus simplify your code like this (format-network-address
> returns nil if the address is nil):
> 
> (defun erc-dcc-get-host (proc)
>   (let ((sockaddr (plist-get (process-contact erc-process t) :local)))
>      (format-network-address sockaddr t)))

Actually, you can make this even simpler:

(defun erc-dcc-get-host (proc)
   (format-network-address (process-contact proc :local) t))

I assume that you intended to use the PROC arg rather than erc-process?

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]