Beispiel #1
0
 protected virtual void OnSend(UdpPacket packet, bool success)
 {
     if (Send != null)
     {
         SendEventArgs args = new SendEventArgs(packet, success);
         Send(this, args);
     }
 }
Beispiel #2
0
 private void _user_Send(object sender, SendEventArgs args)
 {
     if (args.IsUserPacket)
     {
         //此处需要处理分为txt,image,file传送,其他的发送结果用户应不关心
         this.userListBox.SetMessageResult(args.Packet.FromMAC, args.Packet.ToMAC, args.Packet.ID, args.Success);
     }
 }
Beispiel #3
0
 private void _user_Send(object sender, SendEventArgs args)
 {
     OutputLog("发送: success=" + args.Success + ", packet=" + args.Packet);
 }