<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Vlad,<br>
<br>
Thank you for the valuable comment. Actually i have implemented
cnode the way you have mentioned ie. through message passing. The
cnode is used to interface erlang with my C application, which is a
library and have some handy number of functions implemented in it
with unique functionalities. So if i want to call any of those
functions, i need to send specific message, these messages should be
interpreted at cnode and based on this i should call the specific
functionality. The message interpretation was tedious, thats why
this doubt popped up in my mind.<br>
<br>
Best regard<br>
Arun<br>
<br>
<div class="moz-cite-prefix">On Sunday 31 July 2016 01:46 PM, Vlad
Dumitrescu wrote:<br>
</div>
<blockquote
cite="mid:CAA-EFXvGOyfg+f-9Q+egbDot6xZMy71dmbPrgEkN5ifS4+LK1A@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Arun,
<div><br>
</div>
<div>Well, it is possible to do RPC calls in all directions, but
what is missing is a framework on the cnode that will handle
it. An RPC call is simply a mesage from a node to another.
Cnodes are not beam VMs and you would have to implement code
that receives the message, interpret it to find out what to
call (because cnodes know nothing about Erlang code and
libraries), execute the call and return the result as another
message. </div>
<div><br>
</div>
<div>My guess is that cnodes were thought in the beginning to
serve as "inputs" in the system, interfacing with the world.
This has partially been superseded by NIFs. </div>
<div><br>
</div>
<div>Why do you need to make RPC calls to a cnode?</div>
<div><br>
</div>
<div>best regards,</div>
<div>Vlad</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Jul 30, 2016 at 4:48 PM, ARUN P
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:arunp@utl.in" target="_blank">arunp@utl.in</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi ,<br>
<br>
can anyone please suggest me is there any possible way
to do rpc call from erlang node to cnode. I understand that
there is no direct mechanism available to make rpc to cnode,
but am curious because of the fact that, am able to make rpc
call from cnode to erlang node, then why vice-vers is not
possible. Somebody kindly assist me.<br>
<br>
Thanks in advance.<br>
Arun<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a moz-do-not-send="true"
href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a moz-do-not-send="true"
href="http://erlang.org/mailman/listinfo/erlang-questions"
rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>