Erlang.NET.OtpEpmd.lookupPort C# (CSharp) Метод

lookupPort() публичный статический Метод

public static lookupPort ( AbstractNode node ) : int
node AbstractNode
Результат int
        public static int lookupPort(AbstractNode node)
        {
            try
            {
                return r4_lookupPort(node);
            }
            catch (IOException)
            {
                return r3_lookupPort(node);
            }
        }

Usage Example

Пример #1
0
        // package

        /*
         * Get the port number used by the remote node.
         *
         * @return the port number used by the remote node, or 0 if the node was not
         * registered with the port mapper.
         *
         * @exception java.io.IOException if the port mapper could not be contacted.
         */
        internal int port()
        {
            return(OtpEpmd.lookupPort(this));
        }