/// <summary> /// 当发送数据包完成时的事件通知 /// </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> /// 消息发送完成时的回调事件处理函数 /// </summary> /// <param name="connection"></param> /// <param name="e"></param> protected virtual void OnSendCallback(IConnection connection, SendCallbackEventArgs e) { }