• 大小: 0.12M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  c  心跳包  

资源简介

c#心跳包 单发(带返回)单收

资源截图

代码片段和文件信息

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

namespace HeartbeatUDPClient
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            //发送
            Thread myThread = new Thread(UdpSendThread);
            myThread.Start();
    
            //接收
            Thread myThread2 = new Thread(UdpReciveheartbeatThread);//接收心跳信息
            myThread2.Start();

            Thread myThread3 = new Thread(compareTimeT

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-02-28 16:55  HeartbeatUDPClient\
     目录           0  2017-02-28 16:54  HeartbeatUDPClient\HeartbeatUDPClient\
     文件        3838  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\Form1.Designer.cs
     文件        3780  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\Form1.cs
     文件        5817  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\Form1.resx
     文件        3695  2012-10-10 15:12  HeartbeatUDPClient\HeartbeatUDPClient\HeartbeatUDPClient.csproj
     文件         499  2012-10-10 15:03  HeartbeatUDPClient\HeartbeatUDPClient\Program.cs
     目录           0  2017-02-28 16:54  HeartbeatUDPClient\HeartbeatUDPClient\Properties\
     文件        1368  2012-10-10 15:03  HeartbeatUDPClient\HeartbeatUDPClient\Properties\AssemblyInfo.cs
     文件        2884  2012-10-10 15:03  HeartbeatUDPClient\HeartbeatUDPClient\Properties\Resources.Designer.cs
     文件        5612  2012-10-10 15:03  HeartbeatUDPClient\HeartbeatUDPClient\Properties\Resources.resx
     文件        1101  2012-10-10 15:03  HeartbeatUDPClient\HeartbeatUDPClient\Properties\Settings.Designer.cs
     文件         249  2012-10-10 15:03  HeartbeatUDPClient\HeartbeatUDPClient\Properties\Settings.settings
     目录           0  2012-10-26 17:25  HeartbeatUDPClient\HeartbeatUDPClient\bin\
     目录           0  2017-02-28 16:54  HeartbeatUDPClient\HeartbeatUDPClient\bin\Debug\
     文件       11264  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\bin\Debug\HeartbeatUDPClient.exe
     文件       28160  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\bin\Debug\HeartbeatUDPClient.pdb
     文件       22984  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\bin\Debug\HeartbeatUDPClient.vshost.exe
     文件         490  2010-03-17 22:39  HeartbeatUDPClient\HeartbeatUDPClient\bin\Debug\HeartbeatUDPClient.vshost.exe.manifest
     目录           0  2012-10-26 17:25  HeartbeatUDPClient\HeartbeatUDPClient\obj\
     目录           0  2012-10-26 17:25  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\
     目录           0  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\
     文件        5359  2017-02-28 17:37  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7050  2017-02-28 16:55  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        1520  2012-10-26 17:17  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\GenerateResource.read.1.tlog
     文件        3470  2012-10-26 17:17  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\GenerateResource.write.1.tlog
     文件         180  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\HeartbeatUDPClient.Form1.resources
     文件         180  2012-10-26 17:17  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\HeartbeatUDPClient.Properties.Resources.resources
     文件        5246  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\HeartbeatUDPClient.csproj.FileListAbsolute.txt
     文件         975  2017-03-01 08:54  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\HeartbeatUDPClient.csproj.GenerateResource.Cache
     文件        9040  2017-03-01 08:19  HeartbeatUDPClient\HeartbeatUDPClient\obj\x86\Debug\HeartbeatUDPClient.csprojResolveAssemblyReference.cache
............此处省略45个文件信息

评论

共有 条评论