public Class156(IHeader1 class146_1, IBody interface47_0) { this.class146_0 = class146_1; this.class147_0 = interface47_0 ?? new Body(); }
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); } }