• 大小: 0.38M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: tcp  网络  C#  通信    

资源简介

基于TCP的网络通信

资源截图

代码片段和文件信息

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

namespace TCPClient
{
    public partial class frmSyncTCPClient : Form
    {
        #region 变量
        // 申明变量
        private TcpClient tcpClient = null;
        private NetworkStream networkStream = null;
        private BinaryReader reader;
        private BinaryWriter writer;
        
        // 申明委托
        // 显示消息
        private delegate void ShowMessage(string str);
        private ShowMessage showMessageCallback;

        // 显示状态
        private delegate void ShowStatus(string str);
 

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

     文件        276  2018-05-27 19:42  TCP\C#\.vs\TCPCommunication\DesignTimeBuild\.dtbcache

    ..A..H.     63488  2018-05-28 16:06  TCP\C#\.vs\TCPCommunication\v15\.suo

     文件          0  2018-05-27 19:22  TCP\C#\.vs\TCPCommunication\v15\Server\sqlite3\db.lock

     文件       4096  2018-05-27 19:22  TCP\C#\.vs\TCPCommunication\v15\Server\sqlite3\storage.ide

     文件      32768  2018-05-28 13:22  TCP\C#\.vs\TCPCommunication\v15\Server\sqlite3\storage.ide-shm

     文件     770472  2018-05-28 13:29  TCP\C#\.vs\TCPCommunication\v15\Server\sqlite3\storage.ide-wal

     文件      13824  2018-05-27 19:41  TCP\C#\TCPClient\bin\Debug\TCPClient.exe

     文件      26112  2018-05-27 19:41  TCP\C#\TCPClient\bin\Debug\TCPClient.pdb

     文件      11600  2014-06-06 08:50  TCP\C#\TCPClient\bin\Debug\TCPClient.vshost.exe

     文件        490  2014-06-06 08:50  TCP\C#\TCPClient\bin\Debug\TCPClient.vshost.exe.manifest

     文件       6947  2018-05-28 13:29  TCP\C#\TCPClient\Form1.cs

     文件      11190  2018-05-28 13:29  TCP\C#\TCPClient\Form1.Designer.cs

     文件       6020  2018-05-28 13:29  TCP\C#\TCPClient\Form1.resx

     文件       6716  2018-05-28 13:22  TCP\C#\TCPClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7131  2018-05-28 13:28  TCP\C#\TCPClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件         42  2018-05-27 19:22  TCP\C#\TCPClient\obj\x86\Debug\SyncTCPClient.csproj.CoreCompileInputs.cache

     文件       2764  2018-05-27 19:41  TCP\C#\TCPClient\obj\x86\Debug\SyncTCPClient.csproj.FileListAbsolute.txt

     文件        954  2018-05-27 19:41  TCP\C#\TCPClient\obj\x86\Debug\SyncTCPClient.csproj.GenerateResource.cache

     文件      32234  2018-05-27 19:22  TCP\C#\TCPClient\obj\x86\Debug\SyncTCPClient.csprojAssemblyReference.cache

     文件      13824  2018-05-27 19:41  TCP\C#\TCPClient\obj\x86\Debug\TCPClient.exe

     文件        180  2014-06-06 08:50  TCP\C#\TCPClient\obj\x86\Debug\TCPClient.frmSyncTCPClient.resources

     文件      26112  2018-05-27 19:41  TCP\C#\TCPClient\obj\x86\Debug\TCPClient.pdb

     文件        180  2018-05-27 19:41  TCP\C#\TCPClient\obj\x86\Debug\TCPClient.Properties.Resources.resources

     文件        512  2014-06-06 08:50  TCP\C#\TCPClient\Program.cs

     文件       1438  2014-06-06 08:50  TCP\C#\TCPClient\Properties\AssemblyInfo.cs

     文件       2848  2014-06-06 08:50  TCP\C#\TCPClient\Properties\Resources.Designer.cs

     文件       5612  2014-06-06 08:50  TCP\C#\TCPClient\Properties\Resources.resx

     文件       1096  2014-06-06 08:50  TCP\C#\TCPClient\Properties\Settings.Designer.cs

     文件        249  2014-06-06 08:50  TCP\C#\TCPClient\Properties\Settings.settings

     文件       3677  2018-05-28 16:06  TCP\C#\TCPClient\SyncTCPClient.csproj

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

评论

共有 条评论