RouterClient Class
Namespace: Stride.Engine.NetworkAssembly: Stride.Engine.dll
System.Object →
RouterClient
Derived from RouterClient:
public class RouterClient
Name | Description | |
---|---|---|
Fields | ||
DefaultListenPort | The default port to listen for connection from router. |
|
DefaultPort | The default port to connect to router server. |
|
Log | ||
Methods | ||
RegisterService() | Starts a service. |
|
RequestServer(String, CancellationToken) | Requests a specific server. |
Fields
DefaultListenPort
The default port to listen for connection from router.
public static readonly int DefaultListenPort
Field Value
Type | Description |
---|---|
System.Int32 |
DefaultPort
The default port to connect to router server.
public static readonly int DefaultPort
Field Value
Type | Description |
---|---|
System.Int32 |
Log
public static readonly Logger Log
Field Value
Type | Description |
---|---|
Logger |
Methods
RegisterService()
Starts a service.
public static void RegisterService()
Exceptions
Type | Condition |
---|---|
System.NotImplementedException |
RequestServer(String, CancellationToken)
Requests a specific server.
public static async Task<SimpleSocket> RequestServer(string serverUrl, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | serverUrl | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SimpleSocket> |