/// <summary>
 /// fire SendCallback
 /// </summary>
 /// <param name="e"></param>
 private void OnSendCallback(SendCallbackEventArgs e)
 {
     if (e.Status != SendCallbackStatus.Success)
     {
         e.Packet.SentSize = 0;
     }
     if (this.SendCallback != null)
     {
         this.SendCallback(this, e);
     }
 }
Exemple #2
0
 /// <summary>
 /// OnSendCallback
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="e"></param>
 protected virtual void OnSendCallback(IConnection connection, SendCallbackEventArgs e)
 {
 }
 /// <summary>
 /// fire SendCallback
 /// </summary>
 /// <param name="e"></param>
 private void OnSendCallback(SendCallbackEventArgs e)
 {
     if (e.Status != SendCallbackStatus.Success) e.Packet.SentSize = 0;
     if (this.SendCallback != null) this.SendCallback(this, e);
 }
Exemple #4
0
 /// <summary>
 /// OnSendCallback
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="e"></param>
 protected virtual void OnSendCallback(IConnection connection, SendCallbackEventArgs e)
 {
 }