关闭

C#聊天程序服务器

发表于:2013-8-14 10:00

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:世态-炎凉    来源:51Testing软件测试网采编

  使用系统;

  引用;

  丢;

  引用;

  使用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();

21/212>
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号