C# Class withSIX.Play.Core.Games.Legacy.ServerQuery.SourceMasterQuery

Inheritance: ServerQueryBase, IMasterServerQuery, IEnableLogging
显示文件 Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Private Properties

Property Type Description
BuildMessage byte[]
ParseResponse string

Public Methods

Method Description
GetParsedServers ( bool forceLocal = false, int limit ) : Task>
SetFilter ( string name, string value ) : void
SourceMasterQuery ( string serverBrowserTag, Region region = Region.All ) : System

Protected Methods

Method Description
CreateServerDictionary ( ServerAddress address ) : SourceMasterServerQueryResult
RetrieveAsync ( int limit, IPEndPoint remote = null, int tried = -1 ) : Task>

Private Methods

Method Description
BuildMessage ( string seed ) : byte[]
ParseResponse ( ICollection servers, byte reply, int limit ) : string

Method Details

CreateServerDictionary() protected method

protected CreateServerDictionary ( ServerAddress address ) : SourceMasterServerQueryResult
address ServerAddress
return SourceMasterServerQueryResult

GetParsedServers() public method

public GetParsedServers ( bool forceLocal = false, int limit ) : Task>
forceLocal bool
limit int
return Task>

RetrieveAsync() protected method

protected RetrieveAsync ( int limit, IPEndPoint remote = null, int tried = -1 ) : Task>
limit int
remote System.Net.IPEndPoint
tried int
return Task>

SetFilter() public method

public SetFilter ( string name, string value ) : void
name string
value string
return void

SourceMasterQuery() public method

public SourceMasterQuery ( string serverBrowserTag, Region region = Region.All ) : System
serverBrowserTag string
region Region
return System