温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:BugTrack免安装英文原版2.4.8
当前文件:
XTXHGRGZAXU57/btnet_console.cs[784B,2009-6-12 12:00:16],打开代码结构图
XTXHGRGZAXU57/btnet_console.cs[784B,2009-6-12 12:00:16],打开代码结构图1//compile like so: 2
//csc btnet_console.cs POP3Main.cs POP3Client.cs 3
4
using System; 5
using System.Timers; 6
7
namespace btnet { 8
9
public class console { 10
/////////////////////////////////////////////////////////////////////// 11
public static void Main(string[] args) 12
{ 13
14
// check the command line 15
if (args.Length != 1) 16
{ 17
Console.WriteLine( 18
"usage\nbtnet_console.exe [path to btnet_service.exe.config file]"); 19
Console.WriteLine( 20
"example\nbtnet_console.exe btnet_service.exe.config"); 21
22
return; 23
} 24
25
// Get the configuration settings 26
27
bool verbose = true; 28
POP3Main pop3 = new POP3Main(args[0], verbose); 29
pop3.start(); 30
31
Console.WriteLine("Hit enter to quit."); 32
Console.Read(); 33
pop3.stop(); 34
35
} 36
37
} 38
}






}
}