• 大小: 0.08M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: Socket  监听  网络  

资源简介

row socket 网络监听

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PrinterController
{
    public partial class DetailsDialog : Form
    {
        public DetailsDialog()
        {
            InitializeComponent();
        }

        public void SetDetails(RawSocket.PacketArrivedEventArgs args)
        {
            textBox1.Text += “源IP:“ + args.OriginationAddress + “:“ + args.OriginationPort + “\r\n\r\n“;
            textBox1.Text += “目的IP:“ + args.DestinationAddress + “:“ + args.DestinationPort + “\r\n\r\n“;
            textBox1.Text += “IP头内容:“ + string.Join(“ “ args.IPHeaderBuffer).Substring(0 1000) + “\r

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-04-11 11:38  PrinterController\
     目录           0  2014-04-14 16:27  PrinterController\PrinterController\
     文件         187  2014-04-11 11:37  PrinterController\PrinterController\App.config
     文件        2021  2014-04-14 16:53  PrinterController\PrinterController\DetailsDialog.Designer.cs
     文件         965  2014-04-14 17:05  PrinterController\PrinterController\DetailsDialog.cs
     文件        5817  2014-04-14 16:53  PrinterController\PrinterController\DetailsDialog.resx
     文件        1167  2014-04-12 15:48  PrinterController\PrinterController\IpHeader.cs
     文件        4365  2014-04-14 16:36  PrinterController\PrinterController\PrinterController.csproj
     文件        6669  2014-04-14 12:00  PrinterController\PrinterController\PrinterControllerForm.Designer.cs
     文件        3203  2014-04-14 17:02  PrinterController\PrinterController\PrinterControllerForm.cs
     文件        5817  2014-04-14 12:00  PrinterController\PrinterController\PrinterControllerForm.resx
     文件         556  2014-04-14 10:36  PrinterController\PrinterController\Program.cs
     目录           0  2014-04-11 11:37  PrinterController\PrinterController\Properties\
     文件        1446  2014-04-11 11:37  PrinterController\PrinterController\Properties\AssemblyInfo.cs
     文件        2864  2014-04-11 11:37  PrinterController\PrinterController\Properties\Resources.Designer.cs
     文件        5612  2014-04-11 11:37  PrinterController\PrinterController\Properties\Resources.resx
     文件        1104  2014-04-11 11:37  PrinterController\PrinterController\Properties\Settings.Designer.cs
     文件         249  2014-04-11 11:37  PrinterController\PrinterController\Properties\Settings.settings
     文件        6908  2014-04-14 16:47  PrinterController\PrinterController\RawSocket.cs
     目录           0  2014-04-12 16:08  PrinterController\PrinterController\bin\
     目录           0  2014-04-14 10:36  PrinterController\PrinterController\bin\Debug\
     文件       19456  2014-04-14 16:58  PrinterController\PrinterController\bin\Debug\PrinterController.exe
     文件         187  2014-04-11 11:37  PrinterController\PrinterController\bin\Debug\PrinterController.exe.config
     文件       40448  2014-04-14 16:58  PrinterController\PrinterController\bin\Debug\PrinterController.pdb
     文件       22984  2014-04-14 17:01  PrinterController\PrinterController\bin\Debug\PrinterController.vshost.exe
     文件         187  2014-04-11 11:37  PrinterController\PrinterController\bin\Debug\PrinterController.vshost.exe.config
     目录           0  2014-04-15 11:56  PrinterController\PrinterController\bin\Release\
     目录           0  2014-04-11 11:37  PrinterController\PrinterController\obj\
     目录           0  2014-04-14 16:58  PrinterController\PrinterController\obj\Debug\
     文件        1278  2014-04-11 16:38  PrinterController\PrinterController\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6919  2014-04-14 16:27  PrinterController\PrinterController\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略14个文件信息

评论

共有 条评论