Exemplo n.º 1
0
 /**
  * Make public the information needed by remote nodes that may wish to
  * connect to this one. This method establishes a connection to the Erlang
  * port mapper (Epmd) and registers the server node's name and port so that
  * remote nodes are able to connect.
  *
  * This method will fail if an Epmd process is not running on the localhost.
  * See the Erlang documentation for information about starting Epmd.
  *
  * Note that once this method has been called, the node is expected to be
  * available to accept incoming connections. For that reason you should make
  * sure that you call {@link #accept()} shortly after calling
  * {@link #publishPort()}. When you no longer intend to accept connections
  * you should call {@link #unPublishPort()}.
  */
 public bool PublishPort()
 {
     if (Epmd is null)
     {
         Epmd = OtpEpmd.PublishPort(this);
     }
     return(Epmd != null);
 }