setEpmd() public method

public setEpmd ( TcpClient s ) : void
s System.Net.Sockets.TcpClient
return void
Exemplo n.º 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 java.io.IOException
         *                if there was no response from the name server.
         */
        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);
        }
Exemplo n.º 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 java.io.IOException
         *                if there was no response from the name server.
         */
        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;
        }