在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#语言基础 → c#聊天程序标准C/S模式

c#聊天程序标准C/S模式

C#语言基础

下载此实例
  • 开发语言:C#
  • 实例大小:1.26M
  • 下载次数:8
  • 浏览次数:61
  • 发布时间:2023-04-30
  • 实例类别:C#语言基础
  • 发 布 人:js2021
  • 文件格式:.rar
  • 所需积分:2
 相关标签: 标准 程序 模式 C# 聊天

实例介绍

【实例简介】c#聊天程序标准C/S模式
花了三个星期写了这个,标准的c/s模式,数据传递通过序列化的原理,通信使用TCP协议带文件传输,传递文件或文件夹先自行压缩,含源码,使用时请修改客户端(主机)IP(Program.cs文件中的Remote变量).本程序服务端使用SQl存储...

【实例截图】

from clipboard

from clipboard

【核心代码】
文件清单
└── c#聊天
    ├── talk_client
    │   ├── bin
    │   │   └── Debug
    │   │       ├── BinaryClass.dll
    │   │       ├── CassingStream.dll
    │   │       ├── ClientCs.dll
    │   │       ├── ClientCs.pdb
    │   │       ├── error.log
    │   │       ├── error.txt
    │   │       ├── FriendsControl.dll
    │   │       ├── Gzip.dll
    │   │       ├── Gzip.pdb
    │   │       ├── img
    │   │       │   ├──  cyber-tux_overlord59-tux.ico
    │   │       │   ├──  DJ-tux-1_overlord59-.ico
    │   │       │   ├──  DJ-tux-3_overlord59-tux.ico
    │   │       │   ├──  JFBQ00203070420Acici.gif
    │   │       │   ├──  JFBQ00204070424A.gif
    │   │       │   ├──  JFBQ00216070523B.gif
    │   │       │   ├──  JFBQ00231070802A.gif
    │   │       │   ├──  JFBQ00236070904A.gif
    │   │       │   ├──  magic-tux_overlord59-tux.ico
    │   │       │   ├──  mousse_overlord59-fun.ico
    │   │       │   ├──  prehistotux_overlord59-tux.ico
    │   │       │   └──  rap-tux_overlord59-tux.ico
    │   │       ├── LoadImage.dll
    │   │       ├── talk_client.exe
    │   │       ├── talk_client.pdb
    │   │       ├── talk_client.vshost.exe
    │   │       ├── UserLoginCs.dll
    │   │       └── UserLoginCs.pdb
    │   ├── Check
    │   │   └── Checking.cs
    │   ├── class
    │   │   └── ToolClass.cs
    │   ├── localtestrun.testrunconfig
    │   ├── obj
    │   │   ├── Debug
    │   │   │   ├── Refactor
    │   │   │   ├── ResolveAssemblyReference.cache
    │   │   │   ├── talk_client.csproj.GenerateResource.Cache
    │   │   │   ├── talk_client.exe
    │   │   │   ├── talk_client.Form1.resources
    │   │   │   ├── talk_client.pdb
    │   │   │   ├── talk_client.Properties.Resources.resources
    │   │   │   ├── talk_client.Select.resources
    │   │   │   ├── talk_client.SendFile.resources
    │   │   │   ├── talk_client.UserForm.AddFriend.resources
    │   │   │   ├── talk_client.UserForm.AddPic.resources
    │   │   │   ├── talk_client.UserForm.AddType.resources
    │   │   │   ├── talk_client.UserForm.Land.resources
    │   │   │   ├── talk_client.UserForm.MainForm.resources
    │   │   │   ├── talk_client.UserForm.OpenFolder.resources
    │   │   │   ├── talk_client.UserForm.Revice.resources
    │   │   │   ├── talk_client.UserForm.root.resources
    │   │   │   └── TempPE
    │   │   ├── talk_client.csproj.FileListAbsolute.txt
    │   │   └── talk_client.csproj.FileList.txt
    │   ├── Program.cs
    │   ├── Properties
    │   │   ├── AssemblyInfo.cs
    │   │   ├── Resources.Designer.cs
    │   │   ├── Resources.resx
    │   │   ├── Settings.Designer.cs
    │   │   └── Settings.settings
    │   ├── SendFile.cs
    │   ├── SendFile.Designer.cs
    │   ├── SendFile.resx
    │   ├── take_over
    │   │   └── TakeOver.cs
    │   ├── talk_client.csproj
    │   ├── talk_client.sln
    │   ├── talk_client.suo
    │   ├── talk_client.vsmdi
    │   ├── TcpSendStream.cs
    │   ├── TestProject1
    │   │   ├── AuthoringTests.txt
    │   │   ├── bin
    │   │   │   ├── TestProject1.dll
    │   │   │   ├── TestProject1.pdb
    │   │   │   └── TestProject1.xml
    │   │   ├── My Project
    │   │   │   └── AssemblyInfo.vb
    │   │   ├── obj
    │   │   │   ├── Debug
    │   │   │   │   ├── TempPE
    │   │   │   │   ├── TestProject1.dll
    │   │   │   │   ├── TestProject1.pdb
    │   │   │   │   └── TestProject1.xml
    │   │   │   ├── TestProject1.vbproj.FileListAbsolute.txt
    │   │   │   └── TestProject1.vbproj.FileList.txt
    │   │   └── TestProject1.vbproj
    │   └── UserForm
    │       ├── AddFriend.cs
    │       ├── AddFriend.Designer.cs
    │       ├── AddFriend.resx
    │       ├── AddPic.cs
    │       ├── AddPic.Designer.cs
    │       ├── AddPic.resx
    │       ├── AddType.cs
    │       ├── AddType.Designer.cs
    │       ├── AddType.resx
    │       ├── Form1.cs
    │       ├── Form1.Designer.cs
    │       ├── Form1.resx
    │       ├── Land.cs
    │       ├── Land.Designer.cs
    │       ├── Land.resx
    │       ├── MainForm.cs
    │       ├── MainForm.Designer.cs
    │       ├── MainForm.resx
    │       ├── OpenFolder.cs
    │       ├── OpenFolder.designer.cs
    │       ├── OpenFolder.resx
    │       ├── Revice.cs
    │       ├── Revice.Designer.cs
    │       ├── Revice.resx
    │       ├── root.cs
    │       ├── root.Designer.cs
    │       ├── root.resx
    │       ├── Select.cs
    │       ├── Select.Designer.cs
    │       └── Select.resx
    ├── 好友列表
    │   ├── bin
    │   │   └── Debug
    │   │       ├── 好友列表.exe
    │   │       ├── 好友列表.pdb
    │   │       └── 好友列表.vshost.exe
    │   ├── BinaryClass
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── BinaryClass.dll
    │   │   │       └── BinaryClass.pdb
    │   │   ├── BinaryClass.csproj
    │   │   ├── BinaryClass.sln
    │   │   ├── BinaryClass.suo
    │   │   ├── Class1.cs
    │   │   ├── obj
    │   │   │   ├── BinaryClass.csproj.FileList.txt
    │   │   │   └── Debug
    │   │   │       ├── BinaryClass.dll
    │   │   │       ├── BinaryClass.pdb
    │   │   │       └── TempPE
    │   │   └── Properties
    │   │       └── AssemblyInfo.cs
    │   ├── CassingStream
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── CassingStream.dll
    │   │   │       ├── CassingStream.pdb
    │   │   │       ├── ErrLogin.dll
    │   │   │       └── ErrLogin.pdb
    │   │   ├── CassingStream.csproj
    │   │   ├── CassingStream.sln
    │   │   ├── CassingStream.suo
    │   │   ├── Class1.cs
    │   │   ├── obj
    │   │   │   ├── CassingStream.csproj.FileList.txt
    │   │   │   └── Debug
    │   │   │       ├── CassingStream.dll
    │   │   │       ├── CassingStream.pdb
    │   │   │       ├── ResolveAssemblyReference.cache
    │   │   │       └── TempPE
    │   │   └── Properties
    │   │       └── AssemblyInfo.cs
    │   ├── ClientCs
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── ClientCs.dll
    │   │   │       └── ClientCs.pdb
    │   │   ├── Class1.cs
    │   │   ├── ClientCs.csproj
    │   │   ├── ClientCs.sln
    │   │   ├── ClientCs.suo
    │   │   ├── obj
    │   │   │   ├── ClientCs.csproj.FileListAbsolute.txt
    │   │   │   ├── ClientCs.csproj.FileList.txt
    │   │   │   └── Debug
    │   │   │       ├── ClientCs.dll
    │   │   │       ├── ClientCs.pdb
    │   │   │       ├── Refactor
    │   │   │       └── TempPE
    │   │   └── Properties
    │   │       └── AssemblyInfo.cs
    │   ├── ConsoleApplication1
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── ConsoleApplication1.exe
    │   │   │       ├── ConsoleApplication1.pdb
    │   │   │       └── ConsoleApplication1.vshost.exe
    │   │   ├── ConsoleApplication1.csproj
    │   │   ├── ConsoleApplication1.sln
    │   │   ├── ConsoleApplication1.suo
    │   │   ├── obj
    │   │   │   ├── ConsoleApplication1.csproj.FileList.txt
    │   │   │   └── Debug
    │   │   │       ├── ConsoleApplication1.exe
    │   │   │       ├── ConsoleApplication1.pdb
    │   │   │       └── TempPE
    │   │   ├── Program.cs
    │   │   └── Properties
    │   │       └── AssemblyInfo.cs
    │   ├── ErrLogin
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── ErrLogin.dll
    │   │   │       └── ErrLogin.pdb
    │   │   ├── Class1.cs
    │   │   ├── ErrLogin.csproj
    │   │   ├── ErrLogin.sln
    │   │   ├── ErrLogin.suo
    │   │   ├── obj
    │   │   │   ├── Debug
    │   │   │   │   ├── ErrLogin.dll
    │   │   │   │   ├── ErrLogin.pdb
    │   │   │   │   └── TempPE
    │   │   │   └── ErrLogin.csproj.FileList.txt
    │   │   └── Properties
    │   │       └── AssemblyInfo.cs
    │   ├── Form1.cs
    │   ├── Form1.Designer.cs
    │   ├── Form1.resx
    │   ├── FriendsControl
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── FriendsControl.dll
    │   │   │       └── FriendsControl.pdb
    │   │   ├── FriendsControl.csproj
    │   │   ├── FriendsControl.sln
    │   │   ├── FriendsControl.suo
    │   │   ├── obj
    │   │   │   ├── Debug
    │   │   │   │   ├── FriendsControl.csproj.GenerateResource.Cache
    │   │   │   │   ├── FriendsControl.dll
    │   │   │   │   ├── FriendsControl.pdb
    │   │   │   │   ├── FriendsControl.Properties.Resources.resources
    │   │   │   │   ├── FriendsControl.UserControl1.resources
    │   │   │   │   └── TempPE
    │   │   │   │       └── Properties.Resources.Designer.cs.dll
    │   │   │   └── FriendsControl.csproj.FileList.txt
    │   │   ├── Properties
    │   │   │   ├── AssemblyInfo.cs
    │   │   │   ├── Resources.Designer.cs
    │   │   │   └── Resources.resx
    │   │   ├── UserControl1.cs
    │   │   ├── UserControl1.Designer.cs
    │   │   └── UserControl1.resx
    │   ├── Gzip
    │   │   ├── Gzip
    │   │   │   ├── bin
    │   │   │   │   └── Debug
    │   │   │   │       ├── Gzip.dll
    │   │   │   │       └── Gzip.pdb
    │   │   │   ├── Class1.cs
    │   │   │   ├── Gzip.csproj
    │   │   │   ├── obj
    │   │   │   │   ├── Debug
    │   │   │   │   │   ├── Gzip.dll
    │   │   │   │   │   ├── Gzip.pdb
    │   │   │   │   │   ├── Refactor
    │   │   │   │   │   └── TempPE
    │   │   │   │   ├── Gzip.csproj.FileListAbsolute.txt
    │   │   │   │   └── Gzip.csproj.FileList.txt
    │   │   │   └── Properties
    │   │   │       └── AssemblyInfo.cs
    │   │   ├── Gzip.sln
    │   │   └── Gzip.suo
    │   ├── obj
    │   │   ├── Debug
    │   │   │   ├── Refactor
    │   │   │   ├── TempPE
    │   │   │   ├── 好友列表.csproj.GenerateResource.Cache
    │   │   │   ├── 好友列表.exe
    │   │   │   ├── 好友列表.Form1.resources
    │   │   │   ├── 好友列表.pdb
    │   │   │   └── 好友列表.Properties.Resources.resources
    │   │   └── 好友列表.csproj.FileList.txt
    │   ├── Program.cs
    │   ├── Properties
    │   │   ├── AssemblyInfo.cs
    │   │   ├── Resources.Designer.cs
    │   │   ├── Resources.resx
    │   │   ├── Settings.Designer.cs
    │   │   └── Settings.settings
    │   ├── SelfMenu
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── SelfMenu.dll
    │   │   │       └── SelfMenu.pdb
    │   │   ├── obj
    │   │   │   ├── Debug
    │   │   │   │   ├── SelfMenu.csproj.GenerateResource.Cache
    │   │   │   │   ├── SelfMenu.dll
    │   │   │   │   ├── SelfMenu.pdb
    │   │   │   │   ├── SelfMenu.UserControl1.resources
    │   │   │   │   └── TempPE
    │   │   │   └── SelfMenu.csproj.FileList.txt
    │   │   ├── Properties
    │   │   │   └── AssemblyInfo.cs
    │   │   ├── SelfMenu.csproj
    │   │   ├── SelfMenu.sln
    │   │   ├── SelfMenu.suo
    │   │   ├── UserControl1.cs
    │   │   ├── UserControl1.Designer.cs
    │   │   └── UserControl1.resx
    │   ├── UserLoginCs
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── UserLoginCs.dll
    │   │   │       └── UserLoginCs.pdb
    │   │   ├── Class1.cs
    │   │   ├── obj
    │   │   │   ├── Debug
    │   │   │   │   ├── TempPE
    │   │   │   │   ├── UserLoginCs.dll
    │   │   │   │   └── UserLoginCs.pdb
    │   │   │   ├── UserLoginCs.csproj.FileListAbsolute.txt
    │   │   │   └── UserLoginCs.csproj.FileList.txt
    │   │   ├── Properties
    │   │   │   └── AssemblyInfo.cs
    │   │   ├── UserLoginCs.csproj
    │   │   ├── UserLoginCs.sln
    │   │   └── UserLoginCs.suo
    │   ├── 动太显示图像列表
    │   │   ├── bin
    │   │   │   └── Debug
    │   │   │       ├── LoadImage.dll
    │   │   │       └── LoadImage.pdb
    │   │   ├── obj
    │   │   │   ├── Debug
    │   │   │   │   ├── LoadImage.dll
    │   │   │   │   ├── LoadImage.pdb
    │   │   │   │   ├── LoadImage.Properties.Resources.resources
    │   │   │   │   ├── LoadImage.UserControl1.resources
    │   │   │   │   ├── Refactor
    │   │   │   │   ├── TempPE
    │   │   │   │   │   └── Properties.Resources.Designer.cs.dll
    │   │   │   │   └── 动太显示图像列表.csproj.GenerateResource.Cache
    │   │   │   └── 动太显示图像列表.csproj.FileList.txt
    │   │   ├── Properties
    │   │   │   ├── AssemblyInfo.cs
    │   │   │   ├── Resources.Designer.cs
    │   │   │   └── Resources.resx
    │   │   ├── UserControl1.cs
    │   │   ├── UserControl1.Designer.cs
    │   │   ├── UserControl1.resx
    │   │   ├── 动太显示图像列表.csproj
    │   │   ├── 动太显示图像列表.sln
    │   │   ├── 动太显示图像列表.suo
    │   │   └── 新建 文本文档.txt
    │   ├── 好友列表.csproj
    │   ├── 好友列表.sln
    │   └── 好友列表.suo
    ├── 异步传输服务端
    │   ├── bin
    │   │   └── Debug
    │   │       ├── BinaryClass.dll
    │   │       ├── BinaryClass.pdb
    │   │       ├── CassingStream.dll
    │   │       ├── CassingStream.pdb
    │   │       ├── ConsoleApplication2.exe
    │   │       ├── ConsoleApplication2.pdb
    │   │       ├── ConsoleApplication2.vshost.exe
    │   │       ├── ErrLogin.dll
    │   │       ├── ErrLogin.pdb
    │   │       ├── error.log
    │   │       ├── UserLoginCs.dll
    │   │       └── UserLoginCs.pdb
    │   ├── CallAccess.cs
    │   ├── ChatDataBase_Data.MDF
    │   ├── ChatDataBase_Log.LDF
    │   ├── ClientTalk
    │   │   └── ClientTalk.cs
    │   ├── ConsoleApplication2.csproj
    │   ├── ConsoleApplication2.sln
    │   ├── ConsoleApplication2.suo
    │   ├── ExecuteTxtCmd.cs
    │   ├── obj
    │   │   ├── ConsoleApplication2.csproj.FileListAbsolute.txt
    │   │   ├── ConsoleApplication2.csproj.FileList.txt
    │   │   └── Debug
    │   │       ├── ConsoleApplication2.exe
    │   │       ├── ConsoleApplication2.pdb
    │   │       ├── ResolveAssemblyReference.cache
    │   │       └── TempPE
    │   ├── Program.cs
    │   └── Properties
    │       └── AssemblyInfo.cs
    └── 自制压缩程序
        ├── bin
        │   └── Debug
        │       ├── 1.cur
        │       ├── 自制压缩程序.exe
        │       ├── 自制压缩程序.pdb
        │       └── 自制压缩程序.vshost.exe
        ├── Form1.cs
        ├── Form1.Designer.cs
        ├── Form1.resx
        ├── obj
        │   ├── Debug
        │   │   ├── Refactor
        │   │   ├── TempPE
        │   │   ├── 自制压缩程序.csproj.GenerateResource.Cache
        │   │   ├── 自制压缩程序.exe
        │   │   ├── 自制压缩程序.Form1.resources
        │   │   ├── 自制压缩程序.pdb
        │   │   ├── 自制压缩程序.Properties.Resources.resources
        │   │   └── 自制压缩程序.Select.resources
        │   ├── 自制压缩程序.csproj.FileListAbsolute.txt
        │   └── 自制压缩程序.csproj.FileList.txt
        ├── Program.cs
        ├── Properties
        │   ├── AssemblyInfo.cs
        │   ├── Resources.Designer.cs
        │   ├── Resources.resx
        │   ├── Settings.Designer.cs
        │   └── Settings.settings
        ├── Select.cs
        ├── Select.Designer.cs
        ├── Select.resx
        ├── 自制压缩程序.csproj
        ├── 自制压缩程序.sln
        └── 自制压缩程序.suo

118 directories, 307 files

实例下载地址

c#聊天程序标准C/S模式

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警