General .NET
General musings or information posts regarding the .NET Framework.
Wow. Turns out this thing might be useful to more than just me. Anyway, I've added P/Invoke calls to allow access to the WinPCap functions that are specific to Windows as well as the packet filtering functions. I've added a port of the packet filtering example as well. I can't say I've tested all the calls yet, regardless, at this point I am going to start moving up to a higher level. I think we should now have access to almost all the calls available in the native WinPCap, but feel free to leave...
As I stated in my last post, I am currently geeking out on packet capture software. The WireShark network analysis tool is pretty awesome and is built using the WinPCap library which is itself a port of libpcap to the Win32 environment. The unfortunate part, or at least for us .NET developers, is that there is no (IMHO of course) good .NET binding to WinPCap. Well, I've gone ahead and spent some time getting an initial wrapper done using P/Invoke. I've taken a different initial strategy from the...
In my copious amount of free time I've been messing around with network analysis and security. I've always been generally interested in networking technology, but have never really had much practical exposure to it. Sometimes, however, it is nice to be able to analyze a network and see what kind of information is actually coming across the wire. In my last article I mentioned a tool called WireShark which is a free, open source network analyzer aka packet sniffer. WireShark is a great tool and has...
Download Solution - OfflineHtml.zip So, one of the cool controls available to us in WinForms is System.Windows.Forms.WebBro... The WebBrowser control is essentially a managed wrapper around some COM interfaces that bind to Internet Explorer and provides us with several interesting capabilities. First of all, one can use WebBrowser to easily display a web page in a WinForms application. All you have to do is set the WebBrowser.Url property and the control takes care of getting the assets from across...
Back Links LINQ Overview, part zero LINQ Overview, part one (Extension Methods) NOTE: This article is dedicated to Keith Elder...even if he never sent me a bologna sandwich. Apparently, two months is my definition of "very soon". Let's continue. Since .NET 1.1 we've had the concept of delegates. They are the constructs that allow us to call methods on objects via reference such as: delegate int AddFunc(int x, int y); public static class MathOps { public static int Add(int x, int y) { return x + y;...