Ejemplo n.º 1
0
    public static Class156 IHeader0(string string_0, IPEndPoint ipendPoint_0)
    {
        IPEndPointBody class2 = new IPEndPointBody(string_0, ipendPoint_0.Address.ToString(), ipendPoint_0.Port);

        return(new Class156(new IHeader1(0, byte_0, (ushort)class2.BodyTotalLength), class2));
    }
Ejemplo n.º 2
0
 private void udpClient_DataReceived(IPEndPoint ipendPoint_0, byte[] byte_0)
 {
     try
     {
         IHeader1 class2 = IHeader1.smethod_0(byte_0);
         if (class2 != null)
         {
             if (class2.method_0() == 0)
             {
                 IPEndPointBody class4 = IPEndPointBody.smethod_0(byte_0, 4, class2.method_4());
                 this.OnUdpSessionOpened(class2.method_2(), class4.method_0(), ipendPoint_0, new AgileIPE(class4.method_2(), class4.method_4()));
             }
             else if (class2.method_0() == 1)
             {
                 this.OnUdpSessionOpened(ipendPoint_0, StringBody.smethod_0(byte_0, 4, class2.method_4()).method_0());
             }
             else
             {
                 Class100 class3;
                 if (class2.method_0() == 2)
                 {
                     class3 = this.safeDictionary_1.Get(ipendPoint_0);
                     if ((class3 != null) && (class3.method_1() == class2.method_2()))
                     {
                         DataFragmentBody class7 = DataFragmentBody.smethod_0(byte_0, 4, class2.method_4());
                         class3.method_8(class7);
                     }
                 }
                 else if (class2.method_0() == 4)
                 {
                     FeedbackVacancyBody body   = FeedbackVacancyBody.Parse(byte_0, 4, class2.method_4());
                     Class116            class5 = this.safeDictionary_0.Get(ipendPoint_0);
                     if (class5 != null)
                     {
                         class5.method_18(body, true);
                     }
                 }
                 else if (class2.method_0() == 5)
                 {
                     this.method_2(ipendPoint_0);
                 }
                 else if (class2.method_0() == 6)
                 {
                     class3 = this.safeDictionary_1.Get(ipendPoint_0);
                     if (class3 != null)
                     {
                         class3.method_9();
                     }
                 }
                 else if (class2.method_0() == 7)
                 {
                     class3 = this.safeDictionary_1.Get(ipendPoint_0);
                     if ((class3 != null) && (class3.method_1() == class2.method_2()))
                     {
                         Class154 class8 = Class154.smethod_0(byte_0, 4, class2.method_4());
                         ushort   num    = (ushort)(0x2c + class8.BodyTotalLength);
                         this.class32_0.imethod_2(class3.imethod_2(), num);
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         this.emptyAgileLogger_0.Log(exception, "CJFramework.Engine.Udp.Reliable.ReliableUdpEngine.udpClient_DataReceived", ErrorLevel.Standard);
     }
 }