> ## 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.

# chat_manager::process_incoming_data

> chat_manager::process_incoming_data

# chat\_manager::process\_incoming\_data

Delivers data to Game Chat 2 that was received from a remote instance of Game Chat 2.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
void process_incoming_data(  
    uint64_t sourceEndpointIdentifier,  
    uint32_t bufferByteCount,  
    const void* buffer  
)  
```

<a id="parametersSection" />

### Parameters

*sourceEndpointIdentifier*   \_In\_\
Type: uint64\_t

The identifier associated with an endpoint that was advertised to Game Chat 2 with a previous call to [chat\_manager::add\_remote\_user](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user).

*bufferByteCount*   \_In\_\
Type: uint32\_t

The size of the data buffer, in bytes.

*buffer*   \_In\_reads\_(bufferByteCount)\
Type: void\*

The data buffer.

<a id="retvalSection" />

### Return value

Type: void

None.

<a id="remarksSection" />

## Remarks

When the app's transport layer receives data that originated from a remote instance of Game Chat 2, call this method to deliver the data to the local instance of Game Chat 2. Game Chat 2 then decodes the incoming data and renders it to the local user's device. For more information about processing data frames, see [Using the Game Chat 2 C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2).

<a id="requirementsSection" />

## Requirements

**Header:** GameChat2.h

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

<a id="seealsoSection" />

## See also

[Intro to Game Chat 2](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[game\_chat\_data\_frame](/reference/chat/gamechat2/structs/game_chat_data_frame)\
[chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager)


## Related topics

- [chat_manager::add_remote_user](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md)
- [chat_manager::start_processing_data_frames](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_start_processing_data_frames.md)
- [chat_manager::finish_processing_data_frames](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_finish_processing_data_frames.md)
- [chat_manager::singleton_instance](/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_singleton_instance.md)
- [game_chat_data_frame](/reference/chat/gamechat2/structs/game_chat_data_frame.md)
