Exemple #1
0
    public void OnUdpSessionOpened(byte byte_0, string string_1, IPEndPoint ipendPoint_0, AgileIPE agileIPE_0)
    {
        Class100 class2 = this.safeDictionary_1.Get(ipendPoint_0);

        if (class2 != null)
        {
            if (class2.method_1() == byte_0)
            {
                return;
            }
            class2.Close(SessionClosedCause.DestIdentityChanged, false);
            this.OnUdpSessionClosed(class2, SessionClosedCause.DestIdentityChanged);
        }
        Class100 class3 = new Class100((IPv6)this.object_1, byte_0, ipendPoint_0, string_1, this.int_1);

        class3.method_7(this.safeDictionary_0.Get(ipendPoint_0) != null);
        class3.Event_0       += new CbGeneric <Interface17, byte[]>(this.OnDataReceived);
        class3.SessionClosed += new CbGeneric <Interface17, SessionClosedCause>(this.method_8);
        this.safeDictionary_1.Add(ipendPoint_0, class3);
        this.eventSafeTrigger_0.Action <Interface17>("UdpSessionOpened", this.UdpSessionOpened, class3);
        byte[] buffer = Class156.IHeader1(this.string_0).method_0();
        this.object_1.Send(buffer, ipendPoint_0);
        this.class32_0.imethod_0(string_1, agileIPE_0, this.string_0);
    }