UnityEngine.Networking.HostTopology.AddSpecialConnectionConfig C# (CSharp) Method

AddSpecialConnectionConfig() public method

Add special connection to topology (for example if you need to keep connection to standalone chat server you will need to use this function). Returned id should be use as one of parameters (with ip and port) to establish connection to this server.

public AddSpecialConnectionConfig ( ConnectionConfig config ) : int
config ConnectionConfig Connection config for special connection.
return int
        public int AddSpecialConnectionConfig(ConnectionConfig config)
        {
            this.m_SpecialConnections.Add(new ConnectionConfig(config));
            return this.m_SpecialConnections.Count;
        }