Search Results for

    Show / Hide Table of Contents

    Interface INetworkFactory

    This class is a factory of main network components.

    Namespace: Evergine.Networking.Connection
    Assembly: Evergine.Networking.dll
    Syntax
    public interface INetworkFactory

    Methods

    CreateNetworkClient(string, float, float)

    Creates the network client.

    Declaration
    INetworkClient CreateNetworkClient(string applicationIdentifier, float pingInterval, float connectionTimeout)
    Parameters
    Type Name Description
    string applicationIdentifier

    The application identifier.

    float pingInterval

    Ping interval in seconds.

    float connectionTimeout

    Connection timeout in seconds.

    Returns
    Type Description
    INetworkClient

    A network client instance.

    CreateNetworkServer(string, int, float, float, string)

    Creates the network server.

    Declaration
    INetworkServer CreateNetworkServer(string applicationIdentifier, int port, float pingInterval, float connectionTimeout, string serverName = null)
    Parameters
    Type Name Description
    string applicationIdentifier

    The application identifier.

    int port

    The port.

    float pingInterval

    Ping interval in seconds.

    float connectionTimeout

    Connection timeout in seconds.

    string serverName

    The server name. It is sent in every discovery response.

    Returns
    Type Description
    INetworkServer

    A network server instance.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX