Erlang.NET.OtpNode.whereis C# (CSharp) Method

whereis() public method

public whereis ( String name ) : OtpErlangPid
name String
return OtpErlangPid
        public OtpErlangPid whereis(String name)
        {
            OtpMbox m = mboxes.get(name);
            if (m != null)
            {
                return m.Self;
            }
            return null;
        }

Usage Example

Ejemplo n.º 1
0
 /**
  * Determine the {@link OtpErlangPid pid} corresponding to a registered name
  * on this {@link OtpNode node}.
  *
  * <p>
  * This method calls a method with the same name in {@link OtpNode#whereis
  * Otpnode} but is provided here for convenience.
  * </p>
  *
  * @return the {@link OtpErlangPid pid} corresponding to the registered
  *         name, or null if the name is not known on this node.
  */
 public OtpErlangPid whereis(String name)
 {
     return(home.whereis(name));
 }