Click here to Skip to main content
15,892,005 members
Articles / Web Development / HTML

SharpPcap - A Packet Capture Framework for .NET

,
Rate me:
Please Sign up or sign in to vote.
4.94/5 (192 votes)
5 May 2014MPL21 min read 2.1M   10.3K   518  
A framework for capturing, injecting and analyzing network packets for .NET applications based on the WinPcap packet capture driver
using System;

namespace Tamir.IPLib
{
	/// <summary>
	/// The working mode of a Pcap device
	/// </summary>
	public enum PcapMode
	{
		/// <summary>
		/// Set a Pcap device to Capture mode (MODE_CAPT)
		/// </summary>
		Capture,

		/// <summary>
		/// Set a Pcap device to Statistics mode (MODE_STAT)
		/// </summary>
		Statistics
	};
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Mozilla Public License 1.1 (MPL 1.1)


Written By
Software Developer
Israel Israel
Works as a Network Engineer for a leading networking company.

Written By
United States United States
Entrepreneur and product developer with a wide range of technical and business experience.

Comments and Discussions