ping() 공개 메소드

public ping ( String node, long timeout ) : bool
node String
timeout long
리턴 bool
예제 #1
0
파일: ping.cs 프로젝트: takayuki/Erlang.NET
 public static void Main(string[] args)
 {
     OtpNode pingNode = new OtpNode("ping");
     OtpNode pongNode = new OtpNode("pong");
     bool ok = pingNode.ping("pong", 10000);
     pingNode.close();
     pongNode.close();
     Environment.Exit(ok ? 0 : 1);
 }
예제 #2
0
 /**
  * <p>
  * Create a connection to a remote node.
  * </p>
  *
  * <p>
  * Strictly speaking, this method is not necessary simply to set up a
  * connection, since connections are created automatically first time a
  * message is sent to a {@link OtpErlangPid pid} on the remote node.
  * </p>
  *
  * <p>
  * This method makes it possible to wait for a node to come up, however, or
  * check that a node is still alive.
  * </p>
  *
  * <p>
  * This method calls a method with the same name in {@link OtpNode#ping
  * Otpnode} but is provided here for convenience.
  * </p>
  *
  * @param node
  *                the name of the node to ping.
  *
  * @param timeout
  *                the time, in milliseconds, before reporting failure.
  */
 public bool ping(String node, long timeout)
 {
     return(home.ping(node, timeout));
 }