Erlang.NET.OtpEpmd.publishPort C# (CSharp) Method

publishPort() public static method

public static publishPort ( OtpLocalNode node ) : bool
node OtpLocalNode
return bool
        public static bool publishPort(OtpLocalNode node)
        {
            TcpClient s = null;

            try
            {
                s = r4_publish(node);
            }
            catch (IOException)
            {
                s = r3_publish(node);
            }

            node.setEpmd(s);

            return s != null;
        }

Usage Example

Beispiel #1
0
 private bool publishPort()
 {
     if (node.getEpmd() != null)
     {
         return(false); // already published
     }
     OtpEpmd.publishPort(node);
     return(true);
 }
All Usage Examples Of Erlang.NET.OtpEpmd::publishPort