Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineSessionSettings.h |
| Include | #include "OnlineSessionSettings.h" |
Syntax
class FOnlineSessionSearch
Remarks
Encapsulation of a search for sessions request. Contains all the search parameters and any search results returned after the OnFindSessionsCompleteDelegate has triggered Check the SearchState for Done/Failed state before using the data
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsLanQuery | Whether the query is intended for LAN matches or not | |
| int32 | MaxSearchResults | Max number of queries returned by the matchmaking service | |
| int32 | PingBucketSize | Used to sort games into buckets since a the difference in terms of feel for ping in the same bucket is often not a useful comparison and skill is better | |
| int32 | PlatformHash | Search hash used by the online subsystem to disambiguate search queries, stamped every time FindSession is called | |
| FOnlineSearchSettings | QuerySettings | The query to use for finding matching servers | |
| TArray< FOnlineSessionSearchResult > | SearchResults | Array of all sessions found when searching for the given criteria | |
| EOnlineAsyncTaskState::Type | SearchState | State of the search | |
| float | TimeoutInSeconds | Amount of time to wait for the search results. May not apply to all platforms. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor | |||
FOnlineSessionSearch
(
const FOnlineSessionSearch& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FOnlineSessionSettings > | Get the default session settings for this search type Allows games to set reasonable defaults that aren't advertised but would be setup for each instantiated search result | ||
| void | Give the game a chance to sort the returned results |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FOnlineSessionSearch & | |||
| FOnlineSessionSearch & | operator=
(
const FOnlineSessionSearch& |