Beispiel #1
0
 public void OnSent(NetSource sender, NetSourceEventArgs e)
 {
     if (Sent != null)
     {
         Sent(sender, e);
     }
 }
Beispiel #2
0
 protected virtual void OnReceivePackage(Package pkg)
 {
     if (Received != null)
     {
         NetSourceEventArgs e = new NetSourceEventArgs(_receiveBuffer, pkg.Length + 4, pkg);
         Received(this, e);
     }
 }