docs.unity3d.com
    Show / Hide Table of Contents

    Class ServerConfig

    The server configuration for the current session.

    Inheritance
    Object
    ServerConfig
    Namespace: Unity.Services.Multiplay
    Syntax
    [Preserve]
    public class ServerConfig

    Constructors

    ServerConfig(Int64, String, UInt16, UInt16, String, String)

    Creates an instance of ServerConfig. Note that you should not manually create one of these except for testing. Instead, use MultiplayService.ServerConfig to access the server configuration.

    Declaration
    [Preserve]
    public ServerConfig(long serverId, string allocationId, ushort queryPort, ushort port, string ip, string serverLogDirectory)
    Parameters
    Type Name Description
    Int64 serverId

    The Server ID.

    String allocationId

    The Allocation ID for the server.

    UInt16 queryPort

    The Query Port.

    UInt16 port

    The Game Session Port.

    String ip

    The Game Session IP Address.

    String serverLogDirectory

    The Server Log Directory.

    Properties

    AllocationId

    The allocation ID.

    Declaration
    [Preserve]
    public string AllocationId { get; }
    Property Value
    Type Description
    String

    IpAddress

    The connection ip for the session.

    Declaration
    [Preserve]
    public string IpAddress { get; }
    Property Value
    Type Description
    String

    Port

    The connection port for the session.

    Declaration
    [Preserve]
    public ushort Port { get; }
    Property Value
    Type Description
    UInt16

    QueryPort

    The Server Query Protocol Port.

    Declaration
    [Preserve]
    public ushort QueryPort { get; }
    Property Value
    Type Description
    UInt16

    ServerId

    The server ID.

    Declaration
    [Preserve]
    public long ServerId { get; }
    Property Value
    Type Description
    Int64

    ServerLogDirectory

    The directory logs will be written to.

    Declaration
    [Preserve]
    public string ServerLogDirectory { get; }
    Property Value
    Type Description
    String
    In This Article
    • Constructors
      • ServerConfig(Int64, String, UInt16, UInt16, String, String)
    • Properties
      • AllocationId
      • IpAddress
      • Port
      • QueryPort
      • ServerId
      • ServerLogDirectory
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023