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

# XNetworkingTcpQueuedReceivedBufferUsageStatistics

> XNetworkingTcpQueuedReceivedBufferUsageStatistics

# XNetworkingTcpQueuedReceivedBufferUsageStatistics

The output structure returned when querying networking statistics with [XNetworkingQueryStatistics](/reference/networking/xnetworking/functions/xnetworkingquerystatistics) and the TitleTcpQueuedReceivedBufferUsage, SystemTcpQueuedReceivedBufferUsage, or ToolsTcpQueuedReceivedBufferUsage [XNetworkingStatisticsType](/reference/networking/xnetworking/enums/xnetworkingstatisticstype) values are specified.

## Syntax

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

### Members

*numBytesCurrentlyQueued*\
Type: uint64\_t

The size, in bytes, of all kernel mode buffers currently allocated for holding received payloads that have not yet been read from their corresponding TCP sockets. Titles can reduce the queue size by calling [WSARecv](https://learn.microsoft.com/windows/win32/api/winsock2/nf-winsock2-wsarecv) or similar functions on their TCP sockets to consume existing allocations, and can prevent them from occurring by ensuring sufficient receive operations (and their buffers) have already been submitted in advance.

*peakNumBytesEverQueued*\
Type: uint64\_t

The highest size, in bytes, of all kernel mode buffers that have ever been allocated at one time for holding received payloads that have not yet been read from their corresponding TCP sockets.

*totalNumBytesQueued*\
Type: uint64\_t

The total number of bytes in all kernel mode buffers that have ever been allocated for holding received payloads that have not yet been read from their corresponding TCP sockets.

*numBytesDroppedForExceedingConfiguredMax*\
Type: uint64\_t

The number of TCP payload bytes that had arrived but were discarded because they would have exceeded the maximum allowed for the memory partition (see [XNetworkingConfigurationSetting](/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting)::MaxTitleTcpQueuedReceiveBufferSize, [XNetworkingConfigurationSetting](/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting)::MaxSystemTcpQueuedReceiveBufferSize, or [XNetworkingConfigurationSetting](/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting)::MaxToolsTcpQueuedReceiveBufferSize) if they were to be combined with the number of bytes already allocated (*numBytesCurrentlyQueued*).

*numBytesDroppedDueToAnyFailure*\
Type: uint64\_t

The number of TCP payload bytes that had arrived but were discarded because allocating the queued receive buffer failed for any reason (includes *numBytesDroppedForExceedingConfiguredMax*, as well as allocation attempts that would be under the maximum but had insufficient actual available memory in the memory partition at the time).

## Requirements

**Header:** XNetworking.h

**Supported Platforms**: Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XNetworking](/reference/networking/xnetworking/xnetworking_members)\
[XNetworkingQueryStatistics](/reference/networking/xnetworking/functions/xnetworkingquerystatistics)\
[XNetworkingStatisticsBuffer](/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer)


## Related topics

- [XNetworkingStatisticsBuffer](/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer.md)
- [XNetworkingStatisticsType](/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md)
- [XNetworking](/reference/networking/xnetworking/xnetworking_members.md)
- [XNetworkingConfigurationSetting](/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)
- [PartyNetworkStatistic](/services/playfab/multiplayer/networking/reference/enums/partynetworkstatistic.md)
