Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    RouterClient Class

    Namespace: Stride.Engine.Network
    Assembly: 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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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>

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation