|
|
| Author |
Message |
|
| markn at ecr.mu.oz.au |
Posted: Sun Dec 20, 1998 5:22 am |
|
|
|
Guest
|
G'day !
I have a small client/server program written in Erlang (so that there is no
need for sockets). But I can't get the server and the client program to
recognise each other when they're run over slirp. ie: the server is on the
slirp host, and the client is on the other end of the modem.
Using slirp to redirect port 4369 so that the two Erlang nodes share the same
port mapper daemon. epmd -names reports their presence, but when I tried to
ping one from the other it only pangs, instead of pong. ...
I tried starting erl with both -name and -sname to no success. Both sides
are running 4.7.3, the host OS is SunOS 5.5.1, and the client side is
Debian GNU/Linux 2.0.
Any suggestion that doesn't requires the using of sockets (or C) will be
greatly appreciated. I don't hate sockets, but just want to avoid it...
Thanks in advance,
mark
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
| per at erix.ericsson.se |
Posted: Sun Dec 20, 1998 11:45 pm |
|
|
|
Guest
|
Mark NG <markn_at_ecr.mu.oz.au> wrote:
>I have a small client/server program written in Erlang (so that there is no
>need for sockets). But I can't get the server and the client program to
>recognise each other when they're run over slirp. ie: the server is on the
>slirp host, and the client is on the other end of the modem.
Well, slirp is nasty stuff:-) - if I remember right, the "slirp client"
doesn't have its own IP address, but uses the "slirp server"'s address,
right? I'm not sure whether you can get the Erlang distribution to work
at all between the hosts in that scenario - your best bet would probably
be to somehow fool the nodes into thinking that they're running on the
same host.
The distribution mechanism requires that no node is known by more than
one name, and because of this the host part of any node name must be the
"canonical name" of the host - and of course looking up the host part
must yield an IP address that can be used to connect to the node
(together with the port number received from epmd on that node's host).
If you can make all this be true in your slirp setup, it should work - I
think...:-)
--Per Hedeland
per_at_erix.ericsson.se
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|