Пример #1
0
 private void onPacketReceived(WSDataReceivedEventArgs e)
 {
     if (OnPacketReceived != null)
     {
         OnPacketReceived(this, new WSPacketReceivedEventArgs(e, uid));
     }
 }
Пример #2
0
 public WSPacketReceivedEventArgs(WSDataReceivedEventArgs e, int uid)
 {
     Packets = e;
     UID     = uid;
 }
Пример #3
0
 void wsl_FragmentReceived(object sender, WSDataReceivedEventArgs e)
 {
     ReceivingHandler(1, e.LastPacket, "Single Frame #" + e.PacketFragments.Count + " received:");
 }
Пример #4
0
 void wsl_SinglePacketReceived(object sender, WSDataReceivedEventArgs e)
 {
     ReceivingHandler(2, e.LastPacket, "Single Packet received:");
     onPacketReceived(e);
 }
Пример #5
0
 void wsl_FragmentedPacketReceived(object sender, WSDataReceivedEventArgs e)
 {
     ReceivingHandler(0, e.LastPacket, "Last Frame #" + e.PacketFragments.Count + " received:");
     onPacketReceived(e);
 }