• 大小: 0.10M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: 其他
  • 标签: 其他  

资源简介


用winform做的聊天室 欢迎大家多提意见

资源截图

代码片段和文件信息

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.Net;
using System.Threading;
using System.IO;

namespace CharRoomClient
{
    public partial class Client : Form
    {
        public Client()
        {
            InitializeComponent();
            TextBox.CheckForIllegalCrossThreadCalls = false;
        }
        Thread threadClient = null;//客户端负责接收服务端发来的数据消息的线程
        Socket socketClient = null;
        //连接服务端
        private void btnConnection_Click(object sender EventArgs e)
        {
            //获得ip
            IPAddress address = IPAddress.Parse(txtIP.Text.Trim());
            //网络端口
            IPEndPoint endpoint = new IPEndPoint(address int.Parse(txtport.Text.Trim()));
            //创建客户端套接字
             socketClient = new Socket(AddressFamily.InterNetwork SocketType

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-06-03 10:06  winform聊天室\
     目录           0  2013-06-03 10:30  winform聊天室\ChatRoom\
     目录           0  2013-06-03 10:32  winform聊天室\ChatRoom\CharRoomClient\
     目录           0  2013-06-03 10:31  winform聊天室\ChatRoom\CharRoomClient\bin\
     目录           0  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\bin\Debug\
     文件       12288  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\bin\Debug\CharRoomClient.exe
     文件       24064  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\bin\Debug\CharRoomClient.pdb
     文件       11600  2013-06-03 13:38  winform聊天室\ChatRoom\CharRoomClient\bin\Debug\CharRoomClient.vshost.exe
     目录           0  2013-06-03 10:31  winform聊天室\ChatRoom\CharRoomClient\bin\Release\
     文件        3692  2013-06-03 10:32  winform聊天室\ChatRoom\CharRoomClient\CharRoomClient.csproj
     文件        5672  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\Client.cs
     文件        7724  2013-06-03 12:54  winform聊天室\ChatRoom\CharRoomClient\Client.Designer.cs
     文件        5817  2013-06-03 12:54  winform聊天室\ChatRoom\CharRoomClient\Client.resx
     目录           0  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\obj\
     目录           0  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\obj\x86\
     目录           0  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\
     文件         180  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\CharRoomClient.Client.resources
     文件         830  2013-06-03 13:38  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\CharRoomClient.csproj.FileListAbsolute.txt
     文件       12288  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\CharRoomClient.exe
     文件       24064  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\CharRoomClient.pdb
     文件         180  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\CharRoomClient.Properties.Resources.resources
     文件        6250  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         266  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\GenerateResource.read.1.tlog
     文件         658  2013-06-03 13:23  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\GenerateResource.write.1.tlog
     目录           0  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\obj\x86\Debug\TempPE\
     文件         496  2013-06-03 10:32  winform聊天室\ChatRoom\CharRoomClient\Program.cs
     目录           0  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\Properties\
     文件        1360  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\Properties\AssemblyInfo.cs
     文件        2878  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\Properties\Resources.Designer.cs
     文件        5612  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\Properties\Resources.resx
     文件        1099  2013-06-03 10:30  winform聊天室\ChatRoom\CharRoomClient\Properties\Settings.Designer.cs
............此处省略36个文件信息

评论

共有 条评论