C#聊天程序基于HP-SOCKET V1.1最终版

上传者: ot512csdn | 上传时间: 2019-12-21 20:25:15 | 文件大小: 1.34MB | 文件类型: rar
HP-SOCKET我一直以来要要得一个SOCKET引擎,今天做了一个服务器客户端的例子把它测试了一下( 加了自己的心跳包功能,因为以后客户端有可能是android,而无法用HP client的心跳功能)。 例子程序中实现如下功能: 服务器端 1.有用户密码表,用于认证客户端的登陆 2.统计客户端连接状态,发了多少次数据,收了多少次数据,绑定到客户端的登陆用户上。 3.客户端的请求被排在一个先进先出的队列里,服务器单一的线程来转发客户端的聊天数据。 客户端 1.帐号登陆服务器,发送信息。 2.最小化系统托盘,新消息变换图标 3.客户端会一直发消息给服务器(用于压力测试)。 例子程序版本V1.1,这个例子应该不会再更新了。其中还有什么可以优化的地方,请指教,QQ:522929 2015-12-16

文件下载

资源详情

[{"title":"( 80 个子文件 1.34MB ) C#聊天程序基于HP-SOCKET V1.1最终版","children":[{"title":"char1.1","children":[{"title":"hpserver","children":[{"title":"hpserver.sln <span style='color:#111;'> 866B </span>","children":null,"spread":false},{"title":"hpserver","children":[{"title":"bin","children":[{"title":"Release","children":[{"title":"hpserver.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"HPSocketCS.dll <span style='color:#111;'> 48.00KB </span>","children":null,"spread":false},{"title":"HPSocketCS.pdb <span style='color:#111;'> 97.50KB </span>","children":null,"spread":false},{"title":"HPSocket4C_U.dll <span style='color:#111;'> 186.00KB </span>","children":null,"spread":false},{"title":"hpserver.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"hpserver.pdb <span style='color:#111;'> 43.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":null,"spread":false}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 9.97KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 489B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Release","children":[{"title":"hpserver.exe <span style='color:#111;'> 22.00KB </span>","children":null,"spread":false},{"title":"hpserver.csproj.GenerateResource.Cache <span style='color:#111;'> 975B </span>","children":null,"spread":false},{"title":"hpserver.csproj.FileListAbsolute.txt <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"hpserver.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.34KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 18.50KB </span>","children":null,"spread":false},{"title":"hpserver.csprojResolveAssemblyReference.cache <span style='color:#111;'> 15.16KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"hpserver.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"hpserver.pdb <span style='color:#111;'> 43.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"hpserver.exe <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"hpserver.csproj.GenerateResource.Cache <span style='color:#111;'> 975B </span>","children":null,"spread":false},{"title":"hpserver.csproj.FileListAbsolute.txt <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"hpserver.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.13KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"hpserver.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"hpserver.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"hpserver.csproj <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 19.77KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"ClassDiagram1.cd <span style='color:#111;'> 1B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"hpserver.suo <span style='color:#111;'> 22.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"说明.txt <span style='color:#111;'> 657B </span>","children":null,"spread":false},{"title":"服务器设计.pptx <span style='color:#111;'> 57.31KB </span>","children":null,"spread":false},{"title":"压力测试.jpg <span style='color:#111;'> 357.37KB </span>","children":null,"spread":false},{"title":"hpclient","children":[{"title":"hpclient.suo <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"xxx.ico <span style='color:#111;'> 113.56KB </span>","children":null,"spread":false},{"title":"hpclient.sln <span style='color:#111;'> 866B </span>","children":null,"spread":false},{"title":"hpclient","children":[{"title":"bin","children":[{"title":"Release","children":[{"title":"hpclient.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"hpclient.exe <span style='color:#111;'> 249.50KB </span>","children":null,"spread":false},{"title":"HPSocketCS.dll <span style='color:#111;'> 48.00KB </span>","children":null,"spread":false},{"title":"hpclient.vshost.exe <span style='color:#111;'> 11.33KB </span>","children":null,"spread":false},{"title":"hpclient.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"HPSocketCS.pdb <span style='color:#111;'> 97.50KB </span>","children":null,"spread":false},{"title":"HPSocket4C_U.dll <span style='color:#111;'> 186.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":null,"spread":false}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 15.72KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 489B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Release","children":[{"title":"hpclient.pdb <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"hpclient.Properties.Resources.resources <span style='color:#111;'> 115.43KB </span>","children":null,"spread":false},{"title":"hpclient.exe <span style='color:#111;'> 249.50KB </span>","children":null,"spread":false},{"title":"hpclient.csproj.GenerateResource.Cache <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"hpclient.csproj.FileListAbsolute.txt <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"hpclient.Form1.resources <span style='color:#111;'> 114.13KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"hpclient.csprojResolveAssemblyReference.cache <span style='color:#111;'> 12.19KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Debug","children":[{"title":"hpclient.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"hpclient.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"hpclient.exe <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"hpclient.csproj.GenerateResource.Cache <span style='color:#111;'> 975B </span>","children":null,"spread":false},{"title":"hpclient.csproj.FileListAbsolute.txt <span style='color:#111;'> 676B </span>","children":null,"spread":false},{"title":"hpclient.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.20KB </span>","children":null,"spread":false},{"title":"hpclient.csprojResolveAssemblyReference.cache <span style='color:#111;'> 10.62KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"Resources","children":[{"title":"Icon1.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"ppp.ico <span style='color:#111;'> 113.56KB </span>","children":null,"spread":false}],"spread":false},{"title":"Form1.cs <span style='color:#111;'> 14.18KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 176.72KB </span>","children":null,"spread":false},{"title":"hpclient.csproj <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 6.28KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • Mr.C :
    下载发现 Gitee 上C# 的示例,有不同版本。
    2020-10-16
  • shiy720 :
    谢谢楼主的分享
    2019-12-23
  • 吹泡泡 :
    谢谢楼主的分享
    2019-11-19
  • tjw_tjw :
    在简单了,还可以的用
    2019-07-06
  • 承诺兑现 :
    谢谢分享,很有参考价值
    2019-06-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明