• 大小: 0.10M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 聊天  C#  c  开发  软件  

资源简介

C#开发聊天软件

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Threading;
using System.Net.Sockets;
using System.IO;

namespace WinForm {

public delegate void MessageReceivedEventHandler(string msg);
public delegate void ClientConnectedEventHandler(IPEndPoint endPoint);
public delegate void ConnectionLostEventHandler(string info);

public interface IMessageReceiver {
event MessageReceivedEventHandler MessageReceived; // 接收到发来的消息
event ConnectionLostEventHandler ClientLost; // 远程主动断开连接
event ClientConnectedEventHandler ClientConnected; // 远程连接到了本地
void StartListen(); // 开始侦听端口
void StopListen(); // 停止侦听端口
}



public delegate void PortNumberReadyEventHandler(int portNumber);

public class MessageReceiver 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     16384  2018-06-20 11:44  CSharp-Chat\.vs\SimpleTalker\v14\.suo

     文件        911  2008-09-11 15:27  CSharp-Chat\Backup\SimpleTalker.sln

     文件       3336  2008-09-12 16:21  CSharp-Chat\Backup\WinForm\IMessageReceiver.cs

     文件       1197  2008-09-12 11:18  CSharp-Chat\Backup\WinForm\IMessageSender.cs

     文件        673  2008-09-12 11:42  CSharp-Chat\Backup\WinForm\Login.cs

     文件       3057  2008-09-12 11:42  CSharp-Chat\Backup\WinForm\Login.Designer.cs

     文件       5814  2008-09-12 11:42  CSharp-Chat\Backup\WinForm\Login.resx

     文件        799  2008-09-11 23:24  CSharp-Chat\Backup\WinForm\Message.cs

     文件       4751  2008-09-12 17:15  CSharp-Chat\Backup\WinForm\PrimaryForm.cs

     文件       9319  2008-09-12 11:39  CSharp-Chat\Backup\WinForm\PrimaryForm.Designer.cs

     文件       5814  2008-09-12 11:39  CSharp-Chat\Backup\WinForm\PrimaryForm.resx

     文件        395  2008-09-11 18:51  CSharp-Chat\Backup\WinForm\Program.cs

     文件       1426  2008-09-11 15:27  CSharp-Chat\Backup\WinForm\Properties\AssemblyInfo.cs

     文件       2466  2008-09-11 15:27  CSharp-Chat\Backup\WinForm\Properties\Resources.Designer.cs

     文件       5612  2008-09-11 15:27  CSharp-Chat\Backup\WinForm\Properties\Resources.resx

     文件       1004  2008-09-11 15:27  CSharp-Chat\Backup\WinForm\Properties\Settings.Designer.cs

     文件        249  2008-09-11 15:27  CSharp-Chat\Backup\WinForm\Properties\Settings.settings

     文件       2048  2008-09-12 16:44  CSharp-Chat\Backup\WinForm\Talker.cs

     文件       3882  2008-09-12 11:28  CSharp-Chat\Backup\WinForm\WinForm.csproj

     文件        330  2008-09-12 20:54  CSharp-Chat\ReadMe.txt

     文件        988  2018-06-20 11:40  CSharp-Chat\SimpleTalker.sln

     文件      44832  2018-06-20 11:40  CSharp-Chat\UpgradeLog.htm

     文件      21504  2018-06-20 11:40  CSharp-Chat\WinForm\bin\Debug\WinForm.exe

     文件      46592  2018-06-20 11:40  CSharp-Chat\WinForm\bin\Debug\WinForm.pdb

     文件      21680  2018-06-20 11:42  CSharp-Chat\WinForm\bin\Debug\WinForm.vshost.exe

     文件        490  2015-11-13 10:24  CSharp-Chat\WinForm\bin\Debug\WinForm.vshost.exe.manifest

     文件       3336  2008-09-12 16:21  CSharp-Chat\WinForm\IMessageReceiver.cs

     文件       1197  2008-09-12 11:18  CSharp-Chat\WinForm\IMessageSender.cs

     文件        673  2008-09-12 11:42  CSharp-Chat\WinForm\Login.cs

     文件       3057  2008-09-12 11:42  CSharp-Chat\WinForm\Login.Designer.cs

............此处省略41个文件信息

评论

共有 条评论