使用系统;
引用;
丢;
引用;
使用System.Windows.Forms;
使用的System.Data;
使用System.Net;
使用System.Net.Sockets;
使用的System.Threading;
命名空间的ChatServer
{ / / /公升; summarygt / / / Form1中的摘要说明。 / / / </摘要> 公共Form1类:System.Windows.Forms.Form中 { / / /公升; summarygt / / /必需的设计器变量。 / / / </摘要> 私人System.ComponentModel.Container组件= NULL; 私有IP地址HOSTIP然后我们(“127.0.0.1”); 私人的IPEndPoint的ChatServer; 私人插座ChatSocket; 私人bool标志= TRUE; 私人插座AcceptedSocket; 私人System.Windows.Forms.TextBox textBox1的; 私人System.Windows.Forms.TextBox textBox2中; 私人System.Windows.Forms.Button button1的; 私人System.Windows.Forms.Button button2的; 私人System.Windows.Forms.Button的button3; 私人System.Windows.Forms.TextBox textBox3; label1的System.Windows.Forms.Label私人; 私人System.Windows.Forms.Label label2的; 私人System.Windows.Forms.Label LABEL3; StatusBar1中System.Windows.Forms.StatusBar私人; 公共Form1中() { / / / /的Windows窗体设计器支持所必需的 / / 在InitializeComponent(); / / / / TODO:在InitializeComponent的调用后添加暂未添加任何构造函数代码 / / } / / /公升; summarygt / / /清理所有正在使用的资源。 / / / </摘要> 保护覆盖无效的Dispose(BOOL处置) { (处置) { (组件!= NULL) { components.Dispose(); } } base.Dispose(处置); } #region Windows窗体设计器生成的代码 / / /公升; summarygt / / /设计器支持所需的方法 - 不要使用代码编辑器修改 / / /此方法的内容。 / / / </摘要> 私人无效的Initialize Component() { this.textBox1,=新System.Windows.Forms.TextBox(); this.textBox2,=新System.Windows.Forms.TextBox(); this.button1 =:新System.Windows.Forms.Button(); this.button2 =:新System.Windows.Forms.Button(); this.button3 =:新System.Windows.Forms.Button(); this.textBox3,=新System.Windows.Forms.TextBox(); this.label1 =:新System.Windows.Forms.Label(); this.label2 =:新System.Windows.Forms.Label(); this.label3 =:新System.Windows.Forms.Label(); this.statusBar1 =:新System.Windows.Forms.StatusBar(); this.SuspendLayout(); |