示例#1
0
        /// <summary>Remove closed edges from the IdentifierTable</summary>
        protected void CloseHandler(object o, EventArgs ea)
        {
            SubringEdge se = o as SubringEdge;

            if (se != null)
            {
                _it.Remove(se.LocalID);
            }
        }
示例#2
0
        /// <summary>Remove closed XmppEdges from the IdentifierTable.</summary>
        protected void CloseHandler(object o, EventArgs ea)
        {
            XmppEdge xe = o as XmppEdge;

            if (xe != null)
            {
                _it.Remove(xe.LocalID);
            }
        }
示例#3
0
        override protected void RemoveSA(SecurityAssociation sa)
        {
            DtlsAssociation dsa = sa as DtlsAssociation;

            if (dsa == null)
            {
                throw new Exception("SecurityAssociation is not a DtlsAssociation: " + sa);
            }

            _rwl.AcquireWriterLock(Timeout.Infinite);
            _sender_to_sa.Remove(dsa.Sender);
            _rwl.ReleaseWriterLock();
            _it.Remove(dsa.LocalID);
        }