示例#1
0
        /// <summary>
        /// The entry point of the program, where the program control starts and ends.
        /// </summary>
        /// <param name='args'>
        /// First argument: Filname
        /// </param>
        public static void Main(string[] args)
        {
            Console.WriteLine(APP);
            file_client client = new file_client(args);

            Console.Read();
        }
示例#2
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);
            }
            */
        }
示例#3
0
 /// <summary>
 /// The entry point of the program, where the program control starts and ends.
 /// </summary>
 /// <param name='args'>
 /// First argument: Filname
 /// </param>
 public static void Main(string[] args)
 {
     // Transport transport=new Transport(BUFSIZE, APP);
     file_client client = new file_client(args);
 }