[erlang-questions] C Port Question

Jani Hakala jahakala@REDACTED
Fri Sep 8 13:32:59 CEST 2006


"Bob Cowdery" <Bob.Cowdery@REDACTED> writes:

> Hi
>
> I have a further problem now with C Ports. I can get this to work fine
> as a client but am having trouble as a server. Thinking I couldn't see
> my problem I copied the code out of the interoperability tutorial
> cnode_s.c verbatim, changed the cookie to the right value and added
> foo() and bar() which seem to be missing. It compiles ok but when run
> falls out on erl_publish(). I don't know the language very well yet so
> not sure how to get proper diagnostics. It just returns -1 which
> obviously is a failure. I don't know if there are any port
> restrictions or if I can use any free port. Again any help
> appreciated.
>
You could check that epmd is running. 

strace program might give you more information about what is the
problem. 

Jani Hakala



More information about the erlang-questions mailing list