Esempio n. 1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Server running...");
            file_server fs = new file_server();

            Console.ReadKey();
        }
Esempio n. 2
0
 /// <summary>
 /// The entry point of the program, where the program control starts and ends.
 /// </summary>
 /// <param name='args'>
 /// The command-line arguments.
 /// </param>
 public static void Main(string[] args)
 {
     while (true)
     {
         file_server server = new file_server();
     }
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            bool client = true;

            if (client)
            {
                var fC = new file_client(args);
            }
            else
            {
                var fS = new file_server();
            }
            Console.WriteLine("\n Press Enter to continue...");
            Console.Read();

            /*
            //Vælge om der skal sendes eller modtages
            var receive = true;

            var transport = new Transport (1000);
            var buffer = new byte[1000];

            if (receive) {
                transport.receive (ref buffer);
                string text = Encoding.ASCII.GetString (buffer, 0, buffer.Length);

                Console.WriteLine (text);
            }
            else
            {
                buffer = Encoding.ASCII.GetBytes ("kage");
                transport.send (buffer, buffer.Length);
            }
            */
        }
 /// <summary>
 /// The entry point of the program, where the program control starts and ends.
 /// </summary>
 /// <param name='args'>
 /// The command-line arguments.
 /// </param>
 public static void Main(string[] args)
 {
     file_server fs = new file_server();
 }
 /// <summary>
 /// The entry point of the program, where the program control starts and ends.
 /// </summary>
 /// <param name='args'>
 /// The command-line arguments.
 /// </param>
 public static void Main(string[] args)
 {
     Console.WriteLine(APP);
     file_server server = new file_server();
 }
Esempio n. 6
0
 /// <summary>
 /// The entry point of the program, where the program control starts and ends.
 /// </summary>
 /// <param name='args'>
 /// The command-line arguments.
 /// </param>
 public static void Main(string[] args)
 {
     Console.WriteLine("Server starts...");
     file_server x = new file_server();
 }