• 大小: 57.72 KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  

资源简介

C#聊天系统客户端yuan daima

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Threading;
using System.Net;

namespace ChatClient
{
    public partial class FClient : Form
    {
        public FClient()
        {
            InitializeComponent();
            //关闭对文本框的非法线程操作检查
            TextBox.CheckForIllegalCrossThreadCalls = false;
        }
        //创建 1个客户端套接字 和1个负责监听服务端请求的线程  
        Socket socketClient = null; 
        Thread threadClient = null;

        private void btnBeginListen_Click(object sender EventArgs e)
        {
            //定义一个套字节监听  包含3个参数(IP4寻址协议流式连接TCP协议)
            socketClient = new S

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-03-24 11:43  ChatClient\
     目录           0  2011-08-27 18:48  ChatClient\bin\
     目录           0  2012-03-23 12:27  ChatClient\bin\Debug\
     文件       12288  2012-03-25 11:06  ChatClient\bin\Debug\07-ChatClientforCommunication.exe
     文件       34304  2012-03-25 11:06  ChatClient\bin\Debug\07-ChatClientforCommunication.pdb
     文件       11600  2012-03-25 11:07  ChatClient\bin\Debug\07-ChatClientforCommunication.vshost.exe
     文件         490  2010-03-18 06:39  ChatClient\bin\Debug\07-ChatClientforCommunication.vshost.exe.manifest
     目录           0  2011-08-27 18:48  ChatClient\bin\Release\
     文件        3743  2012-01-05 22:22  ChatClient\ChatClient.csproj
     文件        1529  2012-03-05 19:58  ChatClient\ChatClient.sln
     文件       28672  2012-03-25 11:08  ChatClient\ChatClient.suo
     文件        4363  2012-03-25 11:06  ChatClient\FClient.cs
     文件        5817  2012-03-23 12:32  ChatClient\FClient.resx
     文件        6964  2012-03-23 12:32  ChatClient\Form1.Designer.cs
     目录           0  2011-08-27 18:48  ChatClient\obj\
     目录           0  2011-08-27 18:48  ChatClient\obj\x86\
     目录           0  2012-03-25 11:06  ChatClient\obj\x86\Debug\
     文件        4356  2012-01-05 22:13  ChatClient\obj\x86\Debug\07-ChatClientforCommunication.csproj.FileListAbsolute.txt
     文件       12288  2012-03-25 11:06  ChatClient\obj\x86\Debug\07-ChatClientforCommunication.exe
     文件       34304  2012-03-25 11:06  ChatClient\obj\x86\Debug\07-ChatClientforCommunication.pdb
     文件        2909  2012-03-25 11:07  ChatClient\obj\x86\Debug\ChatClient.csproj.FileListAbsolute.txt
     文件         180  2012-03-24 11:17  ChatClient\obj\x86\Debug\ChatClient.FClient.resources
     文件         180  2012-03-24 11:17  ChatClient\obj\x86\Debug\ChatClient.Properties.Resources.resources
     文件        1560  2012-01-05 22:17  ChatClient\obj\x86\Debug\ChatClientforCommunication.csproj.FileListAbsolute.txt
     文件        4440  2012-03-05 19:52  ChatClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6469  2012-03-25 11:06  ChatClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         714  2012-03-24 11:17  ChatClient\obj\x86\Debug\GenerateResource.read.1.tlog
     文件        1650  2012-03-24 11:17  ChatClient\obj\x86\Debug\GenerateResource.write.1.tlog
     文件        7897  2012-03-23 12:35  ChatClient\obj\x86\Debug\ResolveAssemblyReference.cache
     目录           0  2012-01-05 22:22  ChatClient\obj\x86\Debug\TempPE\
     文件        4608  2012-01-05 22:22  ChatClient\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll
............此处省略9个文件信息

评论

共有 条评论