实例介绍
VS2010开发的,使用C#语言,采用多线程,基于Socket的聊天室程序,包括服务器端和客户端,学习Socekt的代码,大家互相交流。
【实例截图】
【核心代码】
聊天室
├── ChatRoomClient
│ ├── bin
│ │ └── Debug
│ │ ├── ChatRoomClient.exe
│ │ ├── ChatRoomClient.pdb
│ │ └── ChatRoomClient.vshost.exe
│ ├── ChatRoomClient.csproj
│ ├── FormChatClient.cs
│ ├── FormChatClient.Designer.cs
│ ├── FormChatClient.resx
│ ├── obj
│ │ └── x86
│ │ └── Debug
│ │ ├── ChatRoomClient.csproj.FileListAbsolute.txt
│ │ ├── ChatRoomClient.exe
│ │ ├── ChatRoomClient.FormChatClient.resources
│ │ ├── ChatRoomClient.pdb
│ │ ├── ChatRoomClient.Properties.Resources.resources
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── GenerateResource.read.1.tlog
│ │ └── GenerateResource.write.1.tlog
│ ├── Program.cs
│ └── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── _ReSharper.聊天室
│ ├── AspFileDataCache.dat
│ ├── BuildScriptCache
│ │ └── 6
│ │ └── 1fdeb45d.dat
│ ├── CompletionStatistics
│ │ └── Statistics.dat
│ ├── ConditionalNames
│ │ └── 2
│ │ └── 74cbf11.dat
│ ├── JavaScriptCache
│ │ └── 3
│ │ └── 51b66cc6.dat
│ ├── JSTest
│ ├── ModuleIds.xml
│ ├── MVC
│ ├── NamedArguments
│ │ └── 2
│ │ └── 74cbf11.dat
│ ├── PersistenIdIndex.bin
│ ├── RecentItems
│ │ └── RecentFiles.dat
│ ├── Resources
│ │ └── 3
│ │ └── 115c85de.dat
│ ├── SymbolCache.bin
│ ├── TagPrefixes
│ ├── TodoItems
│ │ └── 1
│ │ └── 5138b38.dat
│ ├── WebSymbols
│ ├── WordIndex
│ │ └── 6
│ │ └── 1fdeb45d.dat
│ └── XmlIndex
│ ├── Microsoft.Build.Framework.4.0.0.0.Nullness.Generated.xml
│ │ └── 91BD6FD3.bin
│ ├── Microsoft.Build.Tasks.v4.0.4.0.0.0.Nullness.Generated.xml
│ │ └── AB623953.bin
│ ├── Microsoft.Build.Utilities.v4.0.4.0.0.0.Nullness.Generated.xml
│ │ └── 07D57913.bin
│ ├── Microsoft.CSharp.4.0.0.0.Nullness.Generated.xml
│ │ └── 10F25633.bin
│ ├── mscorlib.4.0.0.0.Contracts.xml
│ │ └── 0DED0883.bin
│ ├── mscorlib.4.0.0.0.Interfaces.Nullness.Generated.xml
│ │ └── 620DC5CB.bin
│ ├── mscorlib.4.0.0.0.Nullness.Generated.xml
│ │ └── 772ECBB3.bin
│ ├── mscorlib.4.0.0.0.Pure.xml
│ │ └── 6572C670.bin
│ ├── mscorlib.I18n.xml
│ │ └── 366D6FC8.bin
│ ├── mscorlib.Nullness.Manual.xml
│ │ └── A029C282.bin
│ ├── mscorlib.ValueFlow.xml
│ │ └── 4E59B0BF.bin
│ ├── mscorlib.xml
│ │ └── 05998BE8.bin
│ ├── SMDiagnostics.4.0.0.0.Nullness.Generated.xml
│ │ └── 8E9945D3.bin
│ ├── System.4.0.0.0.Contracts.xml
│ │ └── 7458FC03.bin
│ ├── System.4.0.0.0.Nullness.Generated.xml
│ │ └── 5304AF33.bin
│ ├── System.4.0.0.0.Pure.xml
│ │ └── 403889F0.bin
│ ├── System.Configuration.4.0.0.0.Contracts.xml
│ │ └── 8AA99CC3.bin
│ ├── System.Configuration.4.0.0.0.Nullness.Generated.xml
│ │ └── 5C04A9F3.bin
│ ├── System.Configuration.4.0.0.0.Pure.xml
│ │ └── A30FD330.bin
│ ├── System.Configuration.Install.4.0.0.0.Contracts.xml
│ │ └── F6158D63.bin
│ ├── System.Configuration.Install.4.0.0.0.Nullness.Generated.xml
│ │ └── 28353B53.bin
│ ├── System.Core.4.0.0.0.Contracts.xml
│ │ └── 9A69C6A3.bin
│ ├── System.Core.4.0.0.0.Nullness.Generated.xml
│ │ └── 8E5F4293.bin
│ ├── System.Core.4.0.0.0.Pure.xml
│ │ └── D7464B10.bin
│ ├── System.Core.LinqTunnel.xml
│ │ └── 63F26974.bin
│ ├── System.Core.Nullness.Manual.xml
│ │ └── 31BDD0E2.bin
│ ├── System.Data.4.0.0.0.Contracts.xml
│ │ └── 68A7E423.bin
│ ├── System.Data.4.0.0.0.Nullness.Generated.xml
│ │ └── 7A169013.bin
│ ├── System.Data.4.0.0.0.Pure.xml
│ │ └── 595BF890.bin
│ ├── System.Data.DataSetExtensions.4.0.0.0.Nullness.Generated.xml
│ │ └── DB866913.bin
│ ├── System.Data.DataSetExtensions.I18n.xml
│ │ └── B16CE5E8.bin
│ ├── System.Data.I18n.xml
│ │ └── 51BDCCE8.bin
│ ├── System.Data.OracleClient.4.0.0.0.Nullness.Generated.xml
│ │ └── 9BDAABD3.bin
│ ├── System.Data.SqlXml.4.0.0.0.Nullness.Generated.xml
│ │ └── B9F432D3.bin
│ ├── System.Deployment.4.0.0.0.Nullness.Generated.xml
│ │ └── B159D593.bin
│ ├── System.Design.4.0.0.0.Nullness.Generated.xml
│ │ └── 97CA2CD3.bin
│ ├── System.DirectoryServices.4.0.0.0.Nullness.Generated.xml
│ │ └── 494E7693.bin
│ ├── System.DirectoryServices.Protocols.4.0.0.0.Nullness.Generated.xml
│ │ └── CFA46BF3.bin
│ ├── System.Drawing.4.0.0.0.Contracts.xml
│ │ └── 90ED1C03.bin
│ ├── System.Drawing.4.0.0.0.Nullness.Generated.xml
│ │ └── 283CCF33.bin
│ ├── System.Drawing.4.0.0.0.Pure.xml
│ │ └── 07B8A9F0.bin
│ ├── System.Drawing.Design.4.0.0.0.Nullness.Generated.xml
│ │ └── EFA69853.bin
│ ├── System.Dynamic.4.0.0.0.Nullness.Generated.xml
│ │ └── 8CC52453.bin
│ ├── System.EnterpriseServices.4.0.0.0.Nullness.Generated.xml
│ │ └── C42E9193.bin
│ ├── System.I18n.xml
│ │ └── E767B348.bin
│ ├── System.Nullness.Manual.xml
│ │ └── AC02D602.bin
│ ├── System.Numerics.4.0.0.0.Nullness.Generated.xml
│ │ └── 0D729213.bin
│ ├── System.Runtime.Caching.4.0.0.0.Nullness.Generated.xml
│ │ └── 8BB7FA53.bin
│ ├── System.Runtime.DurableInstancing.4.0.0.0.Nullness.Generated.xml
│ │ └── 94C6B993.bin
│ ├── System.Runtime.Remoting.4.0.0.0.Nullness.Generated.xml
│ │ └── 5A03BD53.bin
│ ├── System.Runtime.Serialization.4.0.0.0.Nullness.Generated.xml
│ │ └── 4774B3B3.bin
│ ├── System.Runtime.Serialization.Attributes.xml
│ │ └── E749FA69.bin
│ ├── System.Runtime.Serialization.Formatters.Soap.2.0.0.0.Contracts.xml
│ │ └── 6A729305.bin
│ ├── System.Runtime.Serialization.Formatters.Soap.4.0.0.0.Contracts.xml
│ │ └── 4C2FB483.bin
│ ├── System.Runtime.Serialization.Formatters.Soap.4.0.0.0.Nullness.Generated.xml
│ │ └── F932F7B3.bin
│ ├── System.Security.4.0.0.0.Contracts.xml
│ │ └── 203E41A3.bin
│ ├── System.Security.4.0.0.0.Nullness.Generated.xml
│ │ └── F66E1D93.bin
│ ├── System.Security.4.0.0.0.Pure.xml
│ │ └── 3CA1E610.bin
│ ├── System.ServiceProcess.4.0.0.0.Nullness.Generated.xml
│ │ └── 359B1C13.bin
│ ├── System.Transactions.4.0.0.0.Nullness.Generated.xml
│ │ └── 3921BF93.bin
│ ├── System.Web.4.0.0.0.Contracts.xml
│ │ └── 9CAD0083.bin
│ ├── System.Web.4.0.0.0.Nullness.Generated.xml
│ │ └── 4965C3B3.bin
│ ├── System.Web.4.0.0.0.Pure.xml
│ │ └── 4657BE70.bin
│ ├── System.Web.ApplicationServices.4.0.0.0.Nullness.Generated.xml
│ │ └── 3969B1B3.bin
│ ├── System.Web.Attributes.xml
│ │ └── C91B0A69.bin
│ ├── System.Web.I18n.xml
│ │ └── DDDA67C8.bin
│ ├── System.Web.Services.4.0.0.0.Nullness.Generated.xml
│ │ └── 30597093.bin
│ ├── System.Web.Services.Attributes.xml
│ │ └── 336EB089.bin
│ ├── System.Windows.Forms.4.0.0.0.Contracts.xml
│ │ └── 0AA1AF83.bin
│ ├── System.Windows.Forms.4.0.0.0.Nullness.Generated.xml
│ │ └── E30F52B3.bin
│ ├── System.Windows.Forms.4.0.0.0.Pure.xml
│ │ └── FDE30D70.bin
│ ├── System.Windows.Forms.I18n.xml
│ │ └── 4286B6C8.bin
│ ├── System.Windows.Forms.Manual.xml
│ │ └── 4EEF7F3C.bin
│ ├── System.Xaml.4.0.0.0.Nullness.Generated.xml
│ │ └── A8037753.bin
│ ├── System.xml
│ │ └── 74BB9F68.bin
│ ├── System.Xml.4.0.0.0.Contracts.xml
│ │ └── 53D95363.bin
│ ├── System.Xml.4.0.0.0.Nullness.Generated.xml
│ │ └── DD97C153.bin
│ ├── System.Xml.4.0.0.0.Pure.xml
│ │ └── 5A1C7B50.bin
│ ├── System.Xml.Attributes.xml
│ │ └── 09EED2C9.bin
│ ├── System.Xml.I18n.xml
│ │ └── 8B551FA8.bin
│ ├── System.Xml.Linq.4.0.0.0.Contracts.xml
│ │ └── 0FA00AA3.bin
│ ├── System.Xml.Linq.4.0.0.0.Nullness.Generated.xml
│ │ └── 0EE20693.bin
│ ├── System.Xml.Linq.4.0.0.0.Pure.xml
│ │ └── 9C820F10.bin
│ └── System.Xml.Linq.I18n.xml
│ └── A5756368.bin
├── 聊天室
│ ├── bin
│ │ └── Debug
│ │ ├── 聊天室.exe
│ │ ├── 聊天室.pdb
│ │ └── 聊天室.vshost.exe
│ ├── FormChatServer.cs
│ ├── FormChatServer.Designer.cs
│ ├── FormChatServer.resx
│ ├── obj
│ │ └── x86
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── GenerateResource.read.1.tlog
│ │ ├── GenerateResource.write.1.tlog
│ │ ├── 聊天室.exe
│ │ ├── 聊天室.FormChatServer.resources
│ │ ├── 聊天室.pdb
│ │ ├── 聊天室.Properties.Resources.resources
│ │ └── 聊天室服务端.csproj.FileListAbsolute.txt
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── 聊天室服务端.csproj
├── 聊天室.sln
├── 聊天室.sln.docstates.suo
└── 聊天室.suo
120 directories, 143 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论