Class Scum
Scum Protocol
public class Scum : ProtocolBase
- Inheritance
-
Scum
- Inherited Members
Constructors
Scum(string, int, int)
Initializes a new instance of the Scum class.
public Scum(string host, int port, int timeout = 5000)
Parameters
hoststringThe host of the server.
portintThe port of the server.
timeoutintThe timeout for server requests.
Properties
FullName
Gets the full name of the protocol.
public override string FullName { get; }
Property Value
Methods
GetStatus(List<Status>?)
Gets the status of the server.
public Task<Status> GetStatus(List<Status>? masterServers = null)
Parameters
Returns
Exceptions
- TimeoutException
Thrown when the operation times out.
- ServerNotFoundException
Thrown when the server is not found in the list of master servers.
QueryMasterServers()
Queries the master servers for a list of servers.
public static Task<List<Status>> QueryMasterServers()
Returns
Exceptions
- TimeoutException
Thrown when the operation times out.
- Exception
Thrown when failed to connect to any of the master servers.