[erlang-questions] Met problem when using distel at emacs

Paul Oliver puzza007@REDACTED
Mon Mar 26 18:18:00 CEST 2007


I've had the same problem.  It seems that when Distel contacts epmd, the
port it gets back is out by 65536.  I had a go at fixing it.  My change was:

(defun epmd-recv-port-resp (event data)
  (ecase event
    ((data)
     (assert (= (length arg) 2))
         (let ((resp (+ (ash    (elt arg 0) 8)
                                        (logand (elt arg 1) 255))))
     (fsm-terminate (if (< resp 0) (+ resp 65536) resp))))
    ((closed)
     (fsm-fail))))

This got the correct port.  Unfortunately this only got me to the next
problem and  I've not had time to revisit it.  I'm using the CEAN version of
Distel and emacs-snapshot-gtk on Ubuntu Feisty.

Cheers,
Paul.

On 3/24/07, Arbow <avindev@REDACTED> wrote:
>
> Anyway, I am using emacs 2.3 (svn), Ubuntu linux 6.06
>
> Best regards,
> Arbow
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



-- 
http://puzza.dyndns.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070326/26b6b67a/attachment.htm>


More information about the erlang-questions mailing list