public override void OnMessage() { if (ListByteBuffer.Count > 0) { this._targetConnection.SendTo(ListByteBuffer.ToArray()); ListByteBuffer.Clear(); } }
public override void OnClosed() { if (_targetConnection.CurrentSession.State == TcpSocketConnectionState.Closed) { return; } _targetConnection.CloseSession(); ListByteBuffer.Clear(); }
public override void OnClosed() { ListByteBuffer.Clear(); }
public override void OnClosed() { _targetConnection.CloseSession(); ListByteBuffer.Clear(); }