Source/NFX.Erlang/Connect/ErlMbox.cs
/// <summary>
/// Send RPC call to a given node.
/// </summary>
/// <param name="node">Destination node for this RPC call</param>
/// <param name="mod">Module name to call</param>
/// <param name="fun">Function name to call</param>
/// <param name="args">Function arguments</param>
/// <param name="ioServer">Either a PID or an Atom containing registered I/O server's name.</param>
/// <param name="remoteCookie">Remote cookie</param>
Send RPC call to a given node.
Send RPC call to a given node .
public void AsyncRPC(ErlAtom node, ErlAtom mod, ErlAtom fun, ErlList args,
                         IErlObject ioServer, ErlAtom? remoteCookie = null)
    {
      if (node.Equals(m_Node.NodeName))
        throw new ErlException(StringConsts.ERL_CONN_LOCAL_RPC_ERROR);
      else
      {
        IErlObject msg = Internal.ErlRpcServer.EncodeRPC(m_Self, mod, fun, args, ioServer);
        var conn = m_Node.Connection(node, remoteCookie);
        if (conn == null)
          throw new ErlConnectionException( node, StringConsts.ERL_CONN_CANT_CONNECT_TO_NODE_ERROR.Args(node));
        conn.Send(m_Self, ConstAtoms.Rex, msg);
      }
    }
public void AsyncRPC ( ErlAtom node , ErlAtom mod , ErlAtom fun , ErlList args , IErlObject ioServer , ErlAtom ? remoteCookie = null ) { if ( node . Equals ( m_Node . NodeName ) ) throw new ErlException ( StringConsts . ERL_CONN_LOCAL_RPC_ERROR ) ; else { IErlObject msg = Internal . ErlRpcServer . EncodeRPC ( m_Self , mod , fun , args , ioServer ) ; var conn = m_Node . Connection ( node , remoteCookie ) ; if ( conn == null ) throw new ErlConnectionException ( node , StringConsts . ERL_CONN_CANT_CONNECT_TO_NODE_ERROR . Args ( node ) ) ; conn . Send ( m_Self , ConstAtoms . Rex , msg ) ; } }
Send RPC call to a given node.
Send RPC call to a given node .
node
ErlAtom
Destination node for this RPC call
Destination node for this RPC call
mod
ErlAtom
Module name to call
Module name to call
fun
ErlAtom
Function name to call
Function name to call
args
ErlList
None
ioServer
IErlObject
Either a PID or an Atom containing registered I/O server's name.
Either a PID or an Atom containing registered I / O server ' s name .
remoteCookie
ErlAtom?
None