示例#1
0
        public void CreateTurnServer()
        {
            turnServer = new Turn.Server.TurnServer(null)
            {
                TurnUdpPort       = udpPort,
                TurnTcpPort       = tcpPort,
                TurnPseudoTlsPort = tlsPort,
                PublicIp          = publicIp,
                MinPort           = publicMinPort,
                MaxPort           = publicMaxPort,
                Authentificater   = new Turn.Server.Authentificater()
                {
                    Realm = realm,
                    Key1  = key1,
                    Key2  = key2,
                },
            };

            turnServer.Start();
        }