实例介绍
SharpPcap3.5源码, 及使用Demo, 其中常用例子包括 : 1.枚举网络适配器 2.打开网络适配器并捕获数据库包 3.非事件方式捕获数据包 4.流量过滤 5.将数据包写入到文件 (CreatingCaptureFile) 6.从文件中读取数据库包(ReadingCapturefile) 7.数据包分析 8.发送数据包 9.发送队列 10.网络流量统计 11.高分组速率捕获队列包
【实例截图】
【核心代码】
33a66418-a10c-4a07-b596-e94e8121f5f7
├── ARCHITECTURE
├── Changelog
├── Examples
│ ├── AirPcapBasicCapture
│ │ ├── AirPcapBasicCapture.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── AssemblyInfo.cs
│ ├── AirPcapDeviceInformation
│ │ ├── AirPcapDeviceInformation.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── AssemblyInfo.cs
│ ├── AirPcapDeviceList
│ │ ├── AirPcapDeviceList.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── AssemblyInfo.cs
│ ├── AirPcapLedControl
│ │ ├── AirPcapLedControl.csproj
│ │ ├── Program.cs
│ │ └── Properties
│ │ └── AssemblyInfo.cs
│ ├── Example10.SendQueue
│ │ ├── Example10.SendQueue.csproj
│ │ └── Example10.SendQueues.cs
│ ├── Example11.Statistics
│ │ ├── Example11.Statistics.cs
│ │ └── Example11.Statistics.csproj
│ ├── Example12.PacketManipulation
│ │ ├── Example12.PacketManipulation.cs
│ │ └── Example12.PacketManipulation.csproj
│ ├── Example1.IfList
│ │ ├── Example01.IfList.csproj
│ │ └── Example1.IfList.cs
│ ├── Example2.ArpResolve
│ │ ├── Example02.ArpResolve.csproj
│ │ └── Example2.ArpResolve.cs
│ ├── Example3.BasicCap
│ │ ├── Example03.BasicCap.csproj
│ │ └── Example3.BasicCap.cs
│ ├── Example4.BasicCapNoCallback
│ │ ├── Example04.BasicCapNoCallback.csproj
│ │ └── Example4.BasicCapNoCallback.cs
│ ├── Example5.PcapFilter
│ │ ├── Example05.PcapFilter.csproj
│ │ └── Example5.PcapFilter.cs
│ ├── Example6.DumpTCP
│ │ ├── Example06.DumpTCP.csproj
│ │ └── Example6.DumpTCP.cs
│ ├── Example7.DumpToFile
│ │ ├── Example07.DumpToFile.csproj
│ │ └── Example7.DumpToFile.cs
│ ├── Example8.ReadFile
│ │ ├── Example08.ReadFile.csproj
│ │ └── Example8.ReadFile.cs
│ ├── Example9.SendPacket
│ │ ├── Example09.SendPacket.csproj
│ │ └── Example9.SendPacket.cs
│ ├── MultipleFiltersOnDevice
│ │ ├── Main.cs
│ │ └── MultipleFiltersOnDevice.csproj
│ ├── QueuingPacketsForBackgroundProcessing
│ │ ├── Main.cs
│ │ └── QueuingPacketsForBackgroundProcessing.csproj
│ ├── WakeOnLan
│ │ ├── Main.cs
│ │ └── WakeOnLan.csproj
│ ├── WinformsExample
│ │ ├── app.config
│ │ ├── CaptureForm.cs
│ │ ├── CaptureForm.Designer.cs
│ │ ├── CaptureForm.resx
│ │ ├── DeviceListForm.cs
│ │ ├── DeviceListForm.Designer.cs
│ │ ├── DeviceListForm.resx
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── Resources
│ │ │ ├── play_icon_enabled.png
│ │ │ ├── stop_icon_disabled.png
│ │ │ └── stop_icon_enabled.png
│ │ └── WinformsExample.csproj
│ └── WinPcapRemoteCapture
│ ├── Program.cs
│ └── WinPcapRemoteCapture.csproj
├── LICENSE
├── Scripts
│ ├── build_release
│ ├── Common
│ ├── generate_docs
│ ├── generate_release_notes
│ ├── make_bin_release
│ ├── make_src_release
│ ├── ReleaseProcess
│ ├── SiteUpdateInstructions
│ ├── synchronize_site_docs
│ └── update_site_docs
├── SharpPcap
│ ├── AirPcap
│ │ ├── AirPcapAdapterBus.cs
│ │ ├── AirPcapAdapterId.cs
│ │ ├── AirPcapBands.cs
│ │ ├── AirPcapChannelInfo.cs
│ │ ├── AirPcapChannelInfoFlags.cs
│ │ ├── AirPcapDecryptionState.cs
│ │ ├── AirPcapDeviceCapabilities.cs
│ │ ├── AirPcapDevice.cs
│ │ ├── AirPcapDeviceDescription.cs
│ │ ├── AirPcapDeviceList.cs
│ │ ├── AirPcapDeviceTimestamp.cs
│ │ ├── AirPcapKey.cs
│ │ ├── AirPcapKeyType.cs
│ │ ├── AirPcapLinkTypes.cs
│ │ ├── AirPcapMacFlags.cs
│ │ ├── AirPcapMediumType.cs
│ │ ├── AirPcapPacketHeader.cs
│ │ ├── AirPcapSafeNativeMethods.cs
│ │ ├── AirPcapStatistics.cs
│ │ ├── AirPcapUnmanagedStructures.cs
│ │ ├── AirPcapValidationType.cs
│ │ ├── AirPcapVersion.cs
│ │ └── Win32SafeNativeMethods.cs
│ ├── App.ico
│ ├── ARP.cs
│ ├── AssemblyInfo.cs
│ ├── CaptureDeviceList.cs
│ ├── CaptureEventArgs.cs
│ ├── CaptureStoppedEventHandler.cs
│ ├── CaptureStoppedEventStatus.cs
│ ├── DeviceMode.cs
│ ├── DeviceNotReadyException.cs
│ ├── ICaptureDevice.cs
│ ├── ICaptureStatistics.cs
│ ├── InvalidOperationDuringBackgroundCaptureException.cs
│ ├── LibPcap
│ │ ├── LibPcapLiveDevice.cs
│ │ ├── LibPcapLiveDeviceList.cs
│ │ ├── LibPcapSafeNativeMethods.cs
│ │ ├── OfflinePcapDevice.cs
│ │ ├── PcapAddress.cs
│ │ ├── PcapDeviceCaptureLoop.cs
│ │ ├── PcapDevice.cs
│ │ ├── PcapHeader.cs
│ │ ├── PcapInterface.cs
│ │ ├── PcapStatistics.cs
│ │ ├── PcapUnmanagedStructures.cs
│ │ └── Sockaddr.cs
│ ├── NotSupportedOnOfflineDeviceException.cs
│ ├── OfflineCaptureDevice.cs
│ ├── PacketArrivalEventHandler.cs
│ ├── PacketDotNet
│ │ ├── PacketDotNet.dll
│ │ └── PacketDotNet.xml
│ ├── Pcap.cs
│ ├── PcapException.cs
│ ├── Readme.Mono
│ ├── SharpPcap.csproj
│ ├── SharpPcap.dll.config
│ ├── StatisticsException.cs
│ ├── Version.cs
│ ├── WinPcap
│ │ ├── AuthenticationTypes.cs
│ │ ├── CaptureMode.cs
│ │ ├── OpenFlags.cs
│ │ ├── RemoteAuthentication.cs
│ │ ├── SafeNativeMethods.cs
│ │ ├── SendQueue.cs
│ │ ├── SendQueueTransmitModes.cs
│ │ ├── StatisticsModeEventArgs.cs
│ │ ├── StatisticsModeEventHandler.cs
│ │ ├── StatisticsModePacket.cs
│ │ ├── UnmanagedStructures.cs
│ │ ├── WinPcapDevice.cs
│ │ └── WinPcapDeviceList.cs
│ └── WinPcapRequiredException.cs
├── SharpPcap.sln
├── Test
│ ├── App.ico
│ ├── capture_files
│ │ ├── arp_request_response.pcap
│ │ ├── ip_packet_bogus_length.pcap
│ │ ├── ipv6_http.pcap
│ │ ├── ipv6_icmpv6_packet.pcap
│ │ ├── README
│ │ ├── tcp.pcap
│ │ ├── tcp_with_extra_bytes.pcap
│ │ ├── test_stream.pcap
│ │ └── udp_dns_request_response.pcap
│ ├── CheckFilterTest.cs
│ ├── lib
│ │ └── nunit.framework.dll
│ ├── LivePcapDeviceListTest.cs
│ ├── LivePcapDeviceSetFilterTest.cs
│ ├── OfflinePcapDeviceTest.cs
│ ├── PcapDeviceTest.cs
│ ├── PcapStatisticsTest.cs
│ ├── PcapTest.cs
│ ├── Test.csproj
│ └── WinPcap
│ └── RemoteDeviceListTest.cs
└── Tutorial
├── index.html
└── sharppcap
└── SharpPcap.png
40 directories, 170 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论