• 大小: 0.11M
    文件类型: .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;

namespace AsyncTcpClient
{
    public partial class FormClient : Form
    {
        private bool isExit = false;
        //用于在一个线程操作另外一个线程的控件
        private delegate void SetListBoxCallback(string str);
        SetListBoxCallback setListBoxCallback;

        private delegate void SetTextBoxReceiveCallback(string str);
        SetTextBoxReceiveCallback setTextBoxReceiveCallback;

        private TcpClient client;
        private NetworkStream networkStream;

        //用于线程同步,初始状态设为非终止状态,使用手动重置方式
       

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

     文件       1378  2014-10-15 10:31  NJYiBuTCPTalk\AsyncTcp.sln

     文件       3753  2014-10-13 16:41  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\AsyncTcpClient.csproj

     文件      14336  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\bin\Debug\AsyncTcpClient.exe

     文件      38400  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\bin\Debug\AsyncTcpClient.pdb

     文件      11600  2014-10-13 15:05  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\bin\Debug\AsyncTcpClient.vshost.exe

     文件        490  2010-03-17 22:39  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\bin\Debug\AsyncTcpClient.vshost.exe.manifest

     文件       8193  2014-10-13 19:19  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\FormClient.cs

     文件       8371  2014-10-13 16:45  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\FormClient.Designer.cs

     文件       5817  2014-10-13 16:45  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\FormClient.resx

     文件       1783  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\AsyncTcpClient.csproj.FileListAbsolute.txt

     文件        980  2014-10-13 16:45  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\AsyncTcpClient.csproj.GenerateResource.Cache

     文件      14336  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\AsyncTcpClient.exe

     文件        180  2014-10-13 16:45  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\AsyncTcpClient.FormClient.resources

     文件      38400  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\AsyncTcpClient.pdb

     文件        180  2014-10-13 16:41  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\AsyncTcpClient.Properties.Resources.resources

     文件       2867  2014-10-13 15:04  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6453  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        500  2014-10-13 15:11  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\Program.cs

     文件       1378  2014-10-13 15:04  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\Properties\AssemblyInfo.cs

     文件       2880  2014-10-13 15:04  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\Properties\Resources.Designer.cs

     文件       5612  2014-10-13 15:04  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\Properties\Resources.resx

     文件       1101  2014-10-13 15:04  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\Properties\Settings.Designer.cs

     文件        249  2014-10-13 15:04  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\Properties\Settings.settings

     文件        450  2014-10-13 15:11  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient\Readobject.cs

    ..A..H.     25600  2014-10-13 19:19  NJYiBuTCPTalk\AsyncTcpClient\AsyncTcpClient.suo

     文件       3758  2014-10-12 12:49  NJYiBuTCPTalk\AsyncTcpServer\AsyncTcpServer\AsyncTcpServer.csproj

     文件      16384  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpServer\AsyncTcpServer\bin\Debug\AsyncTcpServer.exe

     文件      40448  2014-10-15 10:09  NJYiBuTCPTalk\AsyncTcpServer\AsyncTcpServer\bin\Debug\AsyncTcpServer.pdb

     文件      11600  2014-10-15 10:30  NJYiBuTCPTalk\AsyncTcpServer\AsyncTcpServer\bin\Debug\AsyncTcpServer.vshost.exe

     文件        490  2012-06-02 22:34  NJYiBuTCPTalk\AsyncTcpServer\AsyncTcpServer\bin\Debug\AsyncTcpServer.vshost.exe.manifest

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

评论

共有 条评论