unPublishPort() public static method

public static unPublishPort ( OtpLocalNode node ) : void
node OtpLocalNode
return void
Ejemplo n.º 1
0
            private void  unPublishPort()
            {
                // unregister with epmd
                OtpEpmd.unPublishPort(a_node);

                // close the local descriptor (if we have one)
                closeSock(a_node.epmd);
                a_node.epmd = null;
            }
Ejemplo n.º 2
0
        /*
         * Unregister the server node's name and port number from the Erlang
         * port mapper, thus preventing any new connections from remote
         * nodes.
         **/
        public virtual void  unPublishPort()
        {
            // unregister with epmd
            OtpEpmd.unPublishPort(this);

            // close the local descriptor (if we have one)
            try
            {
                if (base.epmd != null)
                {
                    base.epmd.Close();
                }
            }
            catch (System.IO.IOException)
            {
                /*ignore close errors */
            }
            base.epmd = null;
        }