예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 /// <summary>
 /// OnSendCallback
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="e"></param>
 protected virtual void OnSendCallback(IConnection connection, SendCallbackEventArgs e)
 {
 }