> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XNetworkingTcpQueuedReceivedBufferUsageStatistics

> XNetworkingTcpQueuedReceivedBufferUsageStatistics

# XNetworkingTcpQueuedReceivedBufferUsageStatistics

[XNetworkingQueryStatistics](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md) でネットワーキング統計情報を照会し、TitleTcpQueuedReceivedBufferUsage、SystemTcpQueuedReceivedBufferUsage、または ToolsTcpQueuedReceivedBufferUsage の [XNetworkingStatisticsType](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md) 値が指定された場合に返される出力構造体。

## 構文

```cpp theme={null}
typedef struct XNetworkingTcpQueuedReceivedBufferUsageStatistics {  
    uint64_t numBytesCurrentlyQueued;  
    uint64_t peakNumBytesEverQueued;  
    uint64_t totalNumBytesQueued;  
    uint64_t numBytesDroppedForExceedingConfiguredMax;  
    uint64_t numBytesDroppedDueToAnyFailure;  
} XNetworkingTcpQueuedReceivedBufferUsageStatistics  
```

### メンバー

*numBytesCurrentlyQueued*\
Type: uint64\_t

対応する TCP ソケットからまだ読み取られていない受信ペイロードを保持するために現在割り当てられている、すべてのカーネル モード バッファーのサイズ (バイト単位)。タイトルは、TCP ソケット上で [WSARecv](https://learn.microsoft.com/windows/win32/api/winsock2/nf-winsock2-wsarecv) または類似の関数を呼び出して既存の割り当てを消費することでキュー サイズを削減でき、また、事前に十分な受信操作 (およびそれらのバッファー) を送信することで、そのようなキューが発生するのを防ぐこともできます。

*peakNumBytesEverQueued*\
Type: uint64\_t

対応する TCP ソケットからまだ読み取られていない受信ペイロードを保持するために、これまでに一度に割り当てられた、すべてのカーネル モード バッファーの最大サイズ (バイト単位)。

*totalNumBytesQueued*\
Type: uint64\_t

対応する TCP ソケットからまだ読み取られていない受信ペイロードを保持するために、これまでに割り当てられたすべてのカーネル モード バッファー内の総バイト数。

*numBytesDroppedForExceedingConfiguredMax*\
Type: uint64\_t

到着したものの、既に割り当てられているバイト数 (*numBytesCurrentlyQueued*) と組み合わせた場合にメモリ パーティションで許可されている最大値 ([XNetworkingConfigurationSetting](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)::MaxTitleTcpQueuedReceiveBufferSize、[XNetworkingConfigurationSetting](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)::MaxSystemTcpQueuedReceiveBufferSize、または [XNetworkingConfigurationSetting](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)::MaxToolsTcpQueuedReceiveBufferSize を参照) を超えていたために破棄された TCP ペイロードのバイト数。

*numBytesDroppedDueToAnyFailure*\
Type: uint64\_t

到着したものの、何らかの理由でキューされた受信バッファーの割り当てに失敗したために破棄された TCP ペイロードのバイト数 (*numBytesDroppedForExceedingConfiguredMax* に加え、最大値未満であってもその時点でメモリ パーティションに実際に利用可能なメモリが不足していた割り当て試行を含む)。

## 要件

**ヘッダー:** XNetworking.h

**サポートされているプラットフォーム**: Windows、XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[XNetworking](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/xnetworking_members.md)\
[XNetworkingQueryStatistics](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md)\
[XNetworkingStatisticsBuffer](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer.md)


## Related topics

- [XNetworkingStatisticsBuffer](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer.md)
- [XNetworkingStatisticsType](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md)
- [XNetworking (API の内容)](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/xnetworking_members.md)
- [XNetworkingConfigurationSetting](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)
- [XNetworkingQueryStatistics](https://docs.xbox.com/ja-jp/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md)
