Ejemplo n.º 1
0
 private void OnDataReceived(Interface17 interface17_0, byte[] byte_0)
 {
     if (this.DataReceived != null)
     {
         this.DataReceived(interface17_0.imethod_1(), byte_0);
     }
 }
Ejemplo n.º 2
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);
         }
     }
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
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);
         }
     }
 }
Ejemplo n.º 5
0
 private void method_8(Interface17 interface17_0, SessionClosedCause sessionClosedCause_0)
 {
     this.OnUdpSessionClosed(interface17_0, sessionClosedCause_0);
 }