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

# PFLobbyInviteReceivedStateChange

> Details of the InviteReceived PlayFab Multiplayer state change, delivered when a listening entity receives an incoming invitation to join a lobby.

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

## Syntax

```cpp theme={null}
struct PFLobbyInviteReceivedStateChange : PFLobbyStateChange {  
    PFEntityKey listeningEntity;  
    PFEntityKey invitingEntity;  
    const char* connectionString;  
    const char* lobbyId;  
}  
```

### Members

**`listeningEntity`**   [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)

The entity which is listening for invites and which has been invited.

**`invitingEntity`**   [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)

The entity which has invited the `listeningEntity` to a lobby.

**`connectionString`**   const char\*\
*is null-terminated*

The connection string of the lobby to which the `listeningEntity` has been invited.

**`lobbyId`**   const char\*\
*is null-terminated*

The ID of the lobby to which the `listeningEntity` has been invited.

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [Lobby invites](/services/playfab/multiplayer/lobby/lobby-invites.md)
- [PFMultiplayerStartListeningForLobbyInvites](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartlisteningforlobbyinvites.md)
- [PlayFab Multiplayer C++ SDK Release Notes](/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyStateChangeType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
