资源简介

TCP/IP实现的服务端与客户端聊天

资源截图

代码片段和文件信息

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

namespace Client
{
    public partial class MainForm : Form
    {
        private IPEndPoint ServerInfo;
        private Socket ClientSocket;
        //信息接收缓存
        private Byte[] MsgBuffer;
        //信息发送存储
        private Byte[] MsgSend;

        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender EventArgs e)
        {
            //this.CmdSend.Enabled = false;
            //this.CmdExit.Enabled = false;
            //定义一个IPV4,TCP模式的Socket
            Clien

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-17 19:55  TCP.Demo\
     目录           0  2020-01-13 14:41  TCP.Demo\Client\
     目录           0  2011-08-25 10:31  TCP.Demo\Client\Client\
     文件         860  2011-08-12 10:53  TCP.Demo\Client\Client.sln
     文件       19456  2011-08-25 10:31  TCP.Demo\Client\Client.suo
     文件       39424  2020-01-13 16:05  TCP.Demo\Client\Client.v11.suo
     目录           0  2011-08-25 10:31  TCP.Demo\Client\Client\bin\
     目录           0  2011-08-25 10:31  TCP.Demo\Client\Client\bin\Debug\
     文件       13312  2020-01-13 14:46  TCP.Demo\Client\Client\bin\Debug\Client.exe
     文件       30208  2020-01-13 14:46  TCP.Demo\Client\Client\bin\Debug\Client.pdb
     文件       22984  2020-01-13 15:10  TCP.Demo\Client\Client\bin\Debug\Client.vshost.exe
     文件         490  2018-02-19 20:12  TCP.Demo\Client\Client\bin\Debug\Client.vshost.exe.manifest
     目录           0  2018-11-17 19:56  TCP.Demo\Client\Client\bin\Release\
     文件        3686  2011-08-12 11:05  TCP.Demo\Client\Client\Client.csproj
     文件        4648  2020-01-13 14:46  TCP.Demo\Client\Client\MainForm.cs
     文件       10202  2020-01-13 14:43  TCP.Demo\Client\Client\MainForm.Designer.cs
     文件        5817  2020-01-13 14:43  TCP.Demo\Client\Client\MainForm.resx
     目录           0  2011-08-25 10:31  TCP.Demo\Client\Client\obj\
     目录           0  2011-08-25 10:31  TCP.Demo\Client\Client\obj\x86\
     目录           0  2020-01-13 14:46  TCP.Demo\Client\Client\obj\x86\Debug\
     文件        1962  2020-01-13 15:10  TCP.Demo\Client\Client\obj\x86\Debug\Client.csproj.FileListAbsolute.txt
     文件         978  2020-01-13 14:43  TCP.Demo\Client\Client\obj\x86\Debug\Client.csproj.GenerateResource.Cache
     文件        9174  2020-01-13 14:43  TCP.Demo\Client\Client\obj\x86\Debug\Client.csprojResolveAssemblyReference.cache
     文件       13312  2020-01-13 14:46  TCP.Demo\Client\Client\obj\x86\Debug\Client.exe
     文件         180  2020-01-13 14:43  TCP.Demo\Client\Client\obj\x86\Debug\Client.MainForm.resources
     文件       30208  2020-01-13 14:46  TCP.Demo\Client\Client\obj\x86\Debug\Client.pdb
     文件         180  2020-01-13 14:43  TCP.Demo\Client\Client\obj\x86\Debug\Client.Properties.Resources.resources
     文件        2867  2020-01-13 14:41  TCP.Demo\Client\Client\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7059  2020-01-13 14:41  TCP.Demo\Client\Client\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         446  2011-08-25 10:27  TCP.Demo\Client\Client\obj\x86\Debug\GenerateResource.read.1.tlog
     文件        1082  2011-08-25 10:27  TCP.Demo\Client\Client\obj\x86\Debug\GenerateResource.write.1.tlog
............此处省略60个文件信息

评论

共有 条评论