Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Introduzca el puerto FTP");
            int puerto = int.Parse(Console.ReadLine());

            using (FtpServer server = new FtpServer(IPAddress.Any, puerto))
            {
                Chord.ChordStart();
                using (TCP_Server serverTCP = new TCP_Server(IPAddress.Any, Chord.port + 1))
                {
                    serverTCP.Start();
                    server.Start();

                    Console.WriteLine("Press any key to stop...");
                    Console.ReadKey(true);
                }
            }
        }