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

# XblMultiplayerSessionConstantsSetPeerToHostRequirements

> XblMultiplayerSessionConstantsSetPeerToHostRequirements

# XblMultiplayerSessionConstantsSetPeerToHostRequirements

These thresholds apply to each connection from a host candidate. This can only be set when creating a new session.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerSessionConstantsSetPeerToHostRequirements(  
         XblMultiplayerSessionHandle handle,  
         XblMultiplayerPeerToHostRequirements requirements  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSessionHandle](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle)

Handle to the multiplayer session.

*requirements*   \_In\_\
Type: [XblMultiplayerPeerToHostRequirements](/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayerpeertohostrequirements)

Object specifying the peer to host requirements for the session.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** multiplayer\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [XblMultiplayerPeerToHostRequirements](/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayerpeertohostrequirements.md)
- [XblMultiplayerSessionConstantsSetPeerToPeerRequirements](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetpeertopeerrequirements.md)
- [XblMultiplayerSessionSetHostDeviceToken](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsethostdevicetoken.md)
- [XblMultiplayerManagerLobbySessionSetSynchronizedHost](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionsetsynchronizedhost.md)
- [XblMultiplayerManagerGameSessionSetSynchronizedHost](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionsetsynchronizedhost.md)
