// Token: 0x060004B0 RID: 1200 RVA: 0x0002A394 File Offset: 0x00028594 public void imethod_1(bool bool_1, Interface1 interface1_0) { this.bool_0 = bool_1; if (interface1_0 is Class100) { Class100 @class = (Class100)interface1_0; byte[] array = @class.method_0(); if (array.Length != this.int_0) { throw new ArgumentException(Class185.smethod_0(537695022)); } Array.Copy(array, 0, this.byte_0, 0, array.Length); interface1_0 = @class.method_1(); } this.imethod_5(); this.interface6_0.imethod_1(this.bool_0, interface1_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); }