Exemple #1
0
        // used to break all known links to this mbox
        internal virtual void  breakLinks(System.String reason)
        {
            Link[] l = links.clearLinks();

            if (l != null)
            {
                int len = (int)(l.Length);

                for (int i = 0; i < len; i++)
                {
                    exit(1, l[i].remote(), reason);
                }
            }
        }
        /*When the connection fails - send exit to all local
         * pids with links through this connection
         */
        internal virtual void  breakLinks()
        {
            lock (this)
            {
                if (links != null)
                {
                    Link[] l = links.clearLinks();

                    if (l != null)
                    {
                        int len = (int)(l.Length);

                        for (int i = 0; i < len; i++)
                        {
                            // send exit "from" remote pids to local ones
                            self.deliver(new OtpMsg(OtpMsg.Tag.exitTag, l[i].remote(), l[i].local(), "noconnection"));
                        }
                    }
                }
            }
        }