SmartCMServerList

Smart list of CM servers.

Constructors

Link copied to clipboard
constructor(configuration: SteamConfiguration)

Functions

Link copied to clipboard
Gets the ServerRecords of all servers in the server list.
Link copied to clipboard
open fun getNextServerCandidate(supportedProtocolTypes: ProtocolTypes): ServerRecord
open fun getNextServerCandidate(supportedProtocolTypes: EnumSet<ProtocolTypes>): ServerRecord
Get the next server in the list.
Link copied to clipboard
open fun replaceList(endPoints: List<ServerRecord>)
Replace the list with a new list of servers provided to us by the Steam servers.
Link copied to clipboard
open fun resetBadServers()
Explicitly resets the known state of all servers.
Link copied to clipboard
open fun resetOldScores()
Resets the scores of all servers which has a last bad connection more than badConnectionMemoryTimeSpan ago.
Link copied to clipboard
open fun setBadConnectionMemoryTimeSpan(badConnectionMemoryTimeSpan: Long)
Link copied to clipboard
open fun tryMark(endPoint: InetSocketAddress, protocolTypes: ProtocolTypes, quality: ServerQuality): Boolean
open fun tryMark(endPoint: InetSocketAddress, protocolTypes: EnumSet<ProtocolTypes>, quality: ServerQuality): Boolean