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

# PartyEndpointMessageReceivedStateChange

> Information specific to the *EndpointMessageReceived* type of state change.

Information specific to the *EndpointMessageReceived* type of state change.

## Syntax

```cpp theme={null}
struct PartyEndpointMessageReceivedStateChange : PartyStateChange {  
    PartyNetwork* network;  
    PartyEndpoint* senderEndpoint;  
    uint32_t receiverEndpointCount;  
    PartyLocalEndpointArray receiverEndpoints;  
    PartyMessageReceivedOptions options;  
    uint32_t messageSize;  
    const void* messageBuffer;  
}  
```

### Members

**`network`**   [PartyNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/partynetwork)\*

The network containing the endpoint on which the message was received.

**`senderEndpoint`**   [PartyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint)\*

The endpoint which sent the message.

**`receiverEndpointCount`**   uint32\_t

The number of local endpoints to which the message was sent. This value will always be greater than zero. If the sender specified an empty target endpoints array in the [PartyLocalEndpoint::SendMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_sendmessage) call that resulted in this state change, `receiverEndpointCount` and `receiverEndpoints` will contain all local endpoints.

**`receiverEndpoints`**   [PartyLocalEndpointArray](/services/playfab/multiplayer/networking/reference/typedefs)\
*array of size `receiverEndpointCount`*

The local endpoints to which the message was sent. This array will never be empty. If the sender specified an empty target endpoints array in the [PartyLocalEndpoint::SendMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_sendmessage) call that resulted in this state change, `receiverEndpointCount` and `receiverEndpoints` will contain all local endpoints.

**`options`**   [PartyMessageReceivedOptions](/services/playfab/multiplayer/networking/reference/enums/partymessagereceivedoptions)

The options used to send the message.

**`messageSize`**   uint32\_t

The size of the message in bytes.

**`messageBuffer`**   const void\*\
*buffer of size `messageSize` bytes*

The message buffer.

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyLocalEndpoint::SendMessage](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_sendmessage)


## Related topics

- [PartyMessageReceivedOptions](/services/playfab/multiplayer/networking/reference/enums/partymessagereceivedoptions.md)
- [PartyLocalEndpoint::SendMessage](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_sendmessage.md)
- [PartyNetwork::DestroyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_destroyendpoint.md)
- [PartyNetworkStatistic](/services/playfab/multiplayer/networking/reference/enums/partynetworkstatistic.md)
- [Party C/C++ API overview](/services/playfab/multiplayer/networking/reference/party_members.md)
