Exemplo n.º 1
0
Arquivo: ErlRef.cs Projeto: zhabis/nfx
        /// <summary>
        /// Determine if two instances are equal
        /// </summary>
        public bool Equals(ErlRef rhs)
        {
            if (Creation != rhs.Creation)
            {
                return(false);
            }
            for (int i = 0; i < Ids.Length; i++)
            {
                if (Ids[i] != rhs.Ids[i])
                {
                    return(false);
                }
            }

            return(Node.Equals(rhs.Node));
        }
Exemplo n.º 2
0
 public void RPCcast(ErlAtom node, ErlAtom mod, ErlAtom fun, ErlList args, IErlObject ioServer)
 {
     if (node.Equals(m_Node.NodeName))
     {
         throw new ErlException(StringConsts.ERL_CONN_CANT_RPC_TO_LOCAL_NODE_ERROR);
     }
     else
     {
         var msg  = Internal.ErlRpcServer.EncodeRPCcast(m_Self, mod, fun, args, ioServer);
         var conn = m_Node.Connection(node);
         if (conn == null)
         {
             throw new ErlConnectionException(
                       node, StringConsts.ERL_CONN_CANT_CONNECT_TO_NODE_ERROR.Args(node));
         }
         conn.Send(m_Self, ConstAtoms.Rex, msg);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Determine if two instances are equal
 /// </summary>
 public bool Equals(ErlPid pid)
 {
     return((m_Num == pid.m_Num) && Node.Equals(pid.Node));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Determine if two instances are equal
 /// </summary>
 public bool Equals(ErlPort port)
 {
     return((Creation == port.Creation) && (Id == port.Id) && Node.Equals(port.Node));
 }