如图3-1 为HTTP服务器界面,通过按启动按钮来启动服务器,按清除按钮可以清空客户端传来服务器的信息。如表3.1所示,它为登录界面主要控件表。
(2)代码分析:
using System;
using System.Windows.Forms;
using ServerCommonLibrary;
using Server;
using Server.Services;
namespace webserver.tester
{
public partial class WebServer : Form
{
//### server
WebServer<myLogger> server;
public WebServer()
{
InitializeComponent();
myLogger.OnNewMessage += new myLogger.TraceMessageHandler(Tracer_OnNewMessage);
this.FormClosing += new FormClosingEventHandler(WebServer_FormClosing);
}