[erlang-questions] A newbie question regarding distributed programming

David Li dlipubkey@REDACTED
Thu Oct 22 19:24:02 CEST 2015


Dmitry,

Thanks for pointing this out. It all works now.



On Wed, Oct 21, 2015 at 10:19 PM, Dmitry Kolesnikov
<dmkolesnikov@REDACTED> wrote:
> Hello,
>
> You nodes are bound to xyz fqdn but you initiate pong to localhost.
>
> Best Regards,
> Dmitry
>>-|-|-(*>
>
>> On 22 Oct 2015, at 01:25, David Li <dlipubkey@REDACTED> wrote:
>>
>> Hi,
>>
>> I am reading up the ping pong example in the tutorial.  I want to set
>> up two Erlang nodes on a single VM to test the code. However the pong
>> program never receives the message from ping.
>>
>> My module name is "hello_msg_twonodes". Here are what I did:
>>
>> To start a pong node:
>> ==================
>> $ erl -sname pong
>> Erlang/OTP 18 [erts-7.1] [source] [64-bit] [async-threads:10] [hipe]
>> [kernel-poll:false]
>>
>> Eshell V7.1  (abort with ^G)
>> (pong@REDACTED)1>
>> (pong@REDACTED)1> hello_msg_twonodes:start_pong().
>> true
>>
>> To start a ping node
>> ==================
>>
>> $ erl -sname ping
>> Erlang/OTP 18 [erts-7.1] [source] [64-bit] [async-threads:10] [hipe]
>> [kernel-poll:false]
>>
>> Eshell V7.1  (abort with ^G)
>> (ping@REDACTED)1> hello_msg_twonodes:start_ping(pong@REDACTED).
>> In PING func, sending to pong
>> In PING func, sent to pong, waiting for feedback
>> <0.42.0>
>>
>>
>>
>> After this, no more messages are shown on either one of the nodes.
>> Can anyone help me to see what's wrong?
>>
>> Thanks.
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list