private void OnDataReceived(Interface17 interface17_0, byte[] byte_0) { if (this.DataReceived != null) { this.DataReceived(interface17_0.imethod_1(), byte_0); } }
private void OnP2PChannelClosed(Interface17 interface17_0, SessionClosedCause sessionClosedCause_0) { if (interface17_0.imethod_0()) { P2PChannelState state = this.safeDictionary_0.Get(interface17_0.imethod_2()); if (state != null) { this.safeDictionary_0.Remove(interface17_0.imethod_2()); this.P2PChannelClosed(state); } } }
private void OnUdpSessionClosed(Interface17 interface17_0, SessionClosedCause sessionClosedCause_0) { if (interface17_0.imethod_0()) { this.safeDictionary_0.Remove(interface17_0.imethod_1()); } else { this.safeDictionary_1.Remove(interface17_0.imethod_1()); } this.eventSafeTrigger_0.Action <Interface17, SessionClosedCause>("UdpSessionClosed", this.UdpSessionClosed, interface17_0, sessionClosedCause_0); }
private void OnP2PChannelOpened(Interface17 interface17_0) { if (interface17_0.imethod_0()) { P2PChannelState state = new P2PChannelState(interface17_0.imethod_2(), ProtocolType.UDP, new AgileIPE(interface17_0.imethod_1()), DateTime.Now, true, false) { Enabled = this.bool_2 }; bool flag = this.safeDictionary_0.Contains(interface17_0.imethod_2()); this.safeDictionary_0.Add(interface17_0.imethod_2(), state); if (!flag) { this.P2PChannelOpened(state); } } }
private void method_8(Interface17 interface17_0, SessionClosedCause sessionClosedCause_0) { this.OnUdpSessionClosed(interface17_0, sessionClosedCause_0); }