www.pudn.com > FileTranslate.rar > Program.cs


using System; 
using System.Collections.Generic; 
using System.Text; 
 
namespace TransSender 
{ 
	class Program 
	{ 
		static void Main(string[] args) 
		{ 
			int bufferSize=Convert.ToInt32(Console.ReadLine()); 
			int threadCount = Convert.ToInt32(Console.ReadLine()); 
			string hostName = Console.ReadLine(); 
			string filePath = Console.ReadLine(); 
			FileSender fs = new FileSender(31000, bufferSize,threadCount,hostName,filePath); 
			fs.startSend(); 
			for (int iIndex = 0; iIndex < fs.workers.Length; ++iIndex) 
				fs.workers[iIndex].Join(); 
			Console.WriteLine("end!"); 
			Console.ReadLine(); 
		} 
	} 
}