setEpmd() protected méthode

protected setEpmd ( System s ) : void
s System
Résultat void
Exemple #1
0
        /*
         * Register with Epmd, so that other nodes are able to find and
         * connect to it.
         *
         * @param node the server node that should be registered with Epmd.
         *
         * @return true if the operation was successful. False if the node
         * was already registered.
         *
         * @exception C#.io.IOException if there was no response from the
         * name server.
         **/
        public static bool publishPort(OtpLocalNode node)
        {
            System.Net.Sockets.TcpClient s = null;

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

            node.setEpmd(s);

            return(s != null);
        }
Exemple #2
0
        /*
        * Register with Epmd, so that other nodes are able to find and
        * connect to it.
        *
        * @param node the server node that should be registered with Epmd.
        *
        * @return true if the operation was successful. False if the node
        * was already registered.
        *
        * @exception C#.io.IOException if there was no response from the
        * name server.
        **/
        public static bool publishPort(OtpLocalNode node)
        {
            System.Net.Sockets.TcpClient s = null;

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

            node.setEpmd(s);

            return (s != null);
        }