Skip to main content
Email Password   helpLost your password?
Sample Image - dotnetwinpcap.jpg

Introduction

Winpcap has been the de facto library in packet capture applications, but the problem is that it is only natively available for C++ and C.

This is an attempt to port some of the crucial Winpcap functions for the .NET environment. The demonstration project here is written in C#.

First of all, you need to install Winpcap from winpcap's Web site and then extract the project zip file. Be sure to reference dotnetwinpcap.dll in the project if not already so.

Methods Available

Properties

Event Support

delegate void ReceivePacket (object sender, PacketHeader p, byte[] s);
event ReceivePacket OnReceivePacket;

Once StartListen() is called, OnReceivePacket will start to fire on every packet encountered, until StopListen() is called, or Close() is called.

Delegate objects of the above signature may be attached to the OnReceivePacket event to receive notification and perform further processing, as demonstrated in the demo source code.

History

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
Generalthanks Pin
79167115
23:28 8 Sep '09  
General??? please help Pin
Jordan Wis
17:28 15 Aug '09  
GeneralMy vote of 1 Pin
legion_
11:44 9 Jul '09  
Generalcraft packet Pin
Unruled Boy
16:37 1 Jan '09  
GeneralFull source uploaded Pin
Victor Tan
8:25 28 Jun '08  
GeneralRe: Full source uploaded Pin
Anil Maurya
4:45 24 Oct '08  
GeneralRe: Full source uploaded Pin
Victor Tan
5:30 24 Oct '08  
QuestionDecoding packets Pin
TariqHussain
0:13 2 Jan '08  
GeneralIs it possible to develop a packet sniffer with out WinPcap? Pin
Diana Fernandez
0:30 13 Nov '07  
AnswerRe: Is it possible to develop a packet sniffer with out WinPcap? Pin
wurzel_cidermaker
7:58 28 Jun '08  
Questionexample for VB.NET 2005 ? Pin
tecnicosht
6:03 19 Jun '07  
Generalupgrade to .net 2005 ? Pin
ranchu panchu
10:50 11 Jun '07  
GeneralRe: upgrade to .net 2005 ? Pin
ranchu panchu
20:13 17 Jun '07  
GeneralRe: upgrade to .net 2005 ? Pin
cooke123
21:36 13 Nov '07  
GeneralUrgent:winpcap with realbasic? Pin
infantilo
10:10 28 Nov '06  
Questionget the content? Pin
dennis0206
3:33 1 Nov '06  
AnswerRe: get the content? Pin
dennis0206
4:51 1 Nov '06  
Generalread a file.acp Pin
DanieleBianchi
6:55 21 Sep '06  
GeneralHow to get the payload of packet Pin
Amol pathak
21:16 17 Sep '06  
QuestionI need codes in JAVA in order to read, save and use Packets captured from VoIP traffic?? (UDP) Pin
andre_toro
10:28 9 Aug '06  
Generaldotnetwinpcap.dll ??? Pin
pgr_home
10:08 2 Aug '06  
GeneralNo packet data! Pin
Lady-green
22:52 27 May '06  
GeneralRe: No packet data! Pin
speedofspin
6:31 19 Jul '06  
GeneralDo Not Decompile Pin
punkbuster
7:06 9 Feb '06  
GeneralAssembling packets Pin
vetris111
22:16 31 Jan '06  


Last Updated 25 Mar 2009 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009