Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public void CloseTurnServer()
 {
     turnServer.Stop();
     turnServer = null;
 }