Erlang/OTP Forums

Author Message

<  Erlang  ~  OTP.NET newbie

dijxtra
Posted: Tue Mar 08, 2011 10:00 am Reply with quote
Joined: 07 Mar 2011 Posts: 6
Hello everybody,

I'm trying to connect my C# application to my erlang application using OTP.NET. And I have problems Very Happy This is what I did:

I set up two erlang nodes and tried out communication between them:

Code:
nick@miljenko:~$ erl -sname alice -cookie "SECRET"
Erlang R13B03 (erts-5.7.4) [source] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4  (abort with ^G)
(alice@miljenko)1> rpc:call(bob@miljenko, erlang, node, []).
bob@miljenko


Code:
nick@miljenko:~$ erl -sname bob -cookie "SECRET"
Erlang R13B03 (erts-5.7.4) [source] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4  (abort with ^G)
(bob@miljenko)1> rpc:call(alice@miljenko, erlang, node, []).
alice@miljenko


Excellent. Then I downloaded OTP.NET (http://jungerl.cvs.sourceforge.net/viewvc/jungerl/jungerl/lib/otp.net/), built it using MonoDevelop 2.2.1 and then run OTP.NET's test example:

Code:
nick@miljenko:~/Projects/otp.net/OtpTest1/bin/Debug$ ./OtpTest1.exe
Otp test...
Usage: /home/nick/Projects/otp.net/OtpTest1/bin/Debug/OtpTest1.exe nodename [cookie] [-notrace]
    nodename  - is the name of the remote Erlang node
    cookie    - is the optional cookie string to use
    -notrace  - disable debug trace

nick@miljenko:~/Projects/otp.net/OtpTest1/bin/Debug$ ./OtpTest1.exe alice@miljenko SECRET
Otp test...
This node is called nick123@miljenko and is using cookie='SECRET'.
Can't connect to node alice@miljenko


To this alice responded with:

Code:
(alice@miljenko)2>
=ERROR REPORT==== 8-Mar-2011::10:44:40 ===
** Connection attempt from disallowed node nick123@miljenko **


I tried to figure out why is my C# node disallowed, but failed. Can anybody give me at least a slightest pointer in which direction to look for errors?

Also: is there any other way to connect C# and erlang? The thing is: I wrote an excellent erlang application and then I wrote really nice C# GUI for it (I thought OTP.NET will work out of the box since I found no bug reports Very Happy). It would be a real shame if I would have to rewrite the GUI in some other language...

Kind regards,
Nikola
View user's profile Send private message Send e-mail
zajda
Posted: Thu Mar 10, 2011 9:54 pm Reply with quote
User Joined: 22 Aug 2009 Posts: 83
Code:
nick@miljenko:~/Projects/otp.net/OtpTest1

...


This node is called nick123@miljenko and is using cookie='SECRET'.
Can't connect to node alice@miljenko


Nikola[/quote]

Code:
(alice@miljenko)2>
=ERROR REPORT==== 8-Mar-2011::10:44:40 ===
** Connection attempt from disallowed node nick123@miljenko **


Thats typical message for wrong cookie. Please execute in your app erlang:get_cookie() to make sure it is not overwritten somewhere.

Make sure also, if OTP node has sname (not fully qualified name).

Regarding your question about connecting OTP and .NET. There is number of protocols, just pick up one suitable for your needs: HTTP, Protobuffs, Thrieft.. raw socket communication.
[/quote]
View user's profile Send private message
dijxtra
Posted: Fri Mar 18, 2011 10:47 am Reply with quote
Joined: 07 Mar 2011 Posts: 6
zajda wrote:

Regarding your question about connecting OTP and .NET. There is number of protocols, just pick up one suitable for your needs: HTTP, Protobuffs, Thrieft.. raw socket communication.

Oh, right, I totally forgot there are other was of communicating Very Happy I think I'll go for TCP/IP.

Thanks for the pointer!
View user's profile Send private message Send e-mail
wuji
Posted: Tue Aug 14, 2012 8:26 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
minutes, the Nashville medical examiner ruled today.Jay Luther, 47, was was [h4]cheap designer *beep*[/h4] was found dead Monday morning in the cooler of the
East Cafe. Luther, who was co-owner of the cafe, pressed pressed cheap jordans pressed a burglar alarm in the cooler that called police
the scene.There were no signs of foul play, police said.The said.The cheap jordans said.The restaurant had been closed for the weekend because of
planned power outage. Dry ice -- frozen carbon dioxide -- -- cheap Ralph Lauren -- had been used to keep food cool for the
police said.When Luther went to check on the food Sunday Sunday cheap jordans Sunday night, he became trapped. The internal latch had been
before the weekend, police said.The restaurateur didn't have his cellphone, cellphone, [h1]cheap designer *beep*[/h1] cellphone, but he tripped the burglar alarm in the cooler,
View user's profile Send private message
trapples
Posted: Wed Aug 15, 2012 5:37 am Reply with quote
User Joined: 02 Apr 2012 Posts: 45
org is an interactive hands-on tutorial that allows you to try the power of Erlang directly in the browser.

_________________
music make our life sounds beautiful

View user's profile Send private message Visit poster's website
trapples
Posted: Wed Aug 15, 2012 5:38 am Reply with quote
User Joined: 02 Apr 2012 Posts: 45
org is an interactive hands-on tutorial that allows you .

_________________
music make our life sounds beautiful

View user's profile Send private message Visit poster's website
dongdongwu
Posted: Thu Sep 20, 2012 5:26 am Reply with quote
User Joined: 19 Sep 2012 Posts: 236
His good friend Diane said: "Christian Louboutin Men Shoes was a magician, he make shoes is immediately put his female people with legs and advantage. He understands women wanted to do and can make them into beautiful Cinderella." Madonna often in its concert wearing Christian louboutin high heels , and some famous superstar like Angelina jolie, mariah Carey, beyonce Knowles, the famous Japanese singer YaYouMei Hamasaki helps Christian Louboutin Men Shoes set up its powerful position. The youngest customers will count Tom cruise's daughter sully cruz. Louboutin made for only a pair of handmade Christian Louboutin high heel Shoes! Want to be more fashion? Put on Christian Louboutin Outlet !
Candy colors of the chalaza high-heeled shoes with lolita type allure, set full finely gem blue "neon shoes" is to need to use "sexy" to describe. Each pair are worth careful appreciation of lithe and graceful fairy ludaoli, what kind of most let you move?Christian Louboutin Men Shoes that one brush red is always cannot resist the temptation, Christian Louboutin men outlet continue to use the days of high 8cm above slender heel proclaim the sexy and luxuriant. The bowknot on black pointed high-heeled shoes with sharp rivet concomitant, wild python met enchanting color printing grain, It is that pairs of high-heeled shoes lets Carrie more feminine flavour. Like Christian Louboutin for men her word.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

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