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