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

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using SocketServer;
namespace Demo
{
    /// 
    /// 回调函数
    /// 

    public class Method
    {
        public void Start(TcpListener tcp)
        {
            var address = (IPEndPoint)tcp.LocalEndpoint;
            System.Console.WriteLine(“启动监听:“ + address.Address + “:“ + address.Port);
        }

        public void Stop(TcpListener tcp)
        {
            var address = (IPEndPoint)tcp.LocalEndpoint;
            System.Console.WriteLine(“停止监听:“ + address.Address + “:“ + address.Port);
        }
        public void Connect(Connect connect)
        {
   

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

     文件        187  2016-10-27 15:11  TCP通讯\Demo\App.config

     文件       7680  2016-11-04 17:45  TCP通讯\Demo\bin\Debug\Demo.exe

     文件        187  2016-10-27 15:11  TCP通讯\Demo\bin\Debug\Demo.exe.config

     文件      15872  2016-11-04 17:45  TCP通讯\Demo\bin\Debug\Demo.pdb

     文件      24224  2016-11-02 09:20  TCP通讯\Demo\bin\Debug\Demo.vshost.exe

     文件        187  2016-10-27 15:11  TCP通讯\Demo\bin\Debug\Demo.vshost.exe.config

     文件        490  2013-03-18 17:00  TCP通讯\Demo\bin\Debug\Demo.vshost.exe.manifest

     文件      18944  2016-11-04 17:45  TCP通讯\Demo\bin\Debug\SocketServer.dll

     文件      40448  2016-11-04 17:45  TCP通讯\Demo\bin\Debug\SocketServer.pdb

     文件       2811  2016-10-27 16:03  TCP通讯\Demo\Demo.csproj

     文件       1809  2016-11-04 17:40  TCP通讯\Demo\Method.cs

     文件        568  2016-11-04 17:45  TCP通讯\Demo\obj\Debug\Demo.csproj.FileListAbsolute.txt

     文件       6622  2016-11-04 17:45  TCP通讯\Demo\obj\Debug\Demo.csprojResolveAssemblyReference.cache

     文件       7680  2016-11-04 17:45  TCP通讯\Demo\obj\Debug\Demo.exe

     文件      15872  2016-11-04 17:45  TCP通讯\Demo\obj\Debug\Demo.pdb

     文件       6655  2016-11-01 18:20  TCP通讯\Demo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2016-10-27 15:11  TCP通讯\Demo\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2016-10-27 15:11  TCP通讯\Demo\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2016-10-27 15:11  TCP通讯\Demo\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       2673  2016-11-04 17:44  TCP通讯\Demo\Program.cs

     文件       1350  2016-10-27 15:11  TCP通讯\Demo\Properties\AssemblyInfo.cs

     文件      18432  2016-11-01 16:07  TCP通讯\Receive\bin\Debug\Receive.exe

     文件      34304  2016-11-01 16:07  TCP通讯\Receive\bin\Debug\Receive.pdb

     文件      22704  2016-10-12 09:12  TCP通讯\Receive\bin\Debug\Receive.vshost.exe

     文件        490  2013-03-18 17:00  TCP通讯\Receive\bin\Debug\Receive.vshost.exe.manifest

     文件      14336  2016-07-22 10:15  TCP通讯\Receive\bin\Release\Receive.exe

     文件      28160  2016-07-22 10:15  TCP通讯\Receive\bin\Release\Receive.pdb

     文件      22704  2016-07-22 10:14  TCP通讯\Receive\bin\Release\Receive.vshost.exe

     文件        490  2013-03-18 17:00  TCP通讯\Receive\bin\Release\Receive.vshost.exe.manifest

     文件      18999  2016-10-14 15:01  TCP通讯\Receive\Form1.cs

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

评论

共有 条评论