.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
ASPEvil
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Post New Web Links

Need a vista/7 alternative to RAW socket for LAN filtering

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :.NET Framework
 

      I have been developing a Download(+upload) Usage Monitor on and off since the beginning of this year, and obviously wish to filter out all loopback and LAN traffic so that my monitor only counts what is used by the internet.

I only need these two bits of info:

  • Where each packet came from/is going to (either LAN, LoopBack, or Internet)(Local/Remote)
  • How many bytes in that packet (If from the Internet/Remote)

      I partially solved the problem for XP (With Admin) by using a Raw socket, and examening the IP info and packet size in the Packet's header, though this method only works for download, and I read that Raw Sockets were disabled or something in Vista and 7.

      I was wandering how to go about creating a Filter (or seperate filters depednind on operarating system) that can work for download and upload on xp/vista/7? surely this should be simple since there is no manipulation...just looking/monitoring, but all I can find that 'may' do the job is Windows Filtering Platform, which seems ridiculously overkill for what such a simple job, and possibly doesnt even work with VB! Any ideas?

Here is an Example of the download only 'filter' code I use with my RAW Socket...


View Complete Post


More Related Resource Links

GridView Filtering In ASP.NET

  
In this tutorial you will learn how to add a filter to a Grid View Control, To modify the query with a parameterized filter, the WHERE Clause, Parameter properties, Parameter Value Editor and To test filtering.

IIS request filtering module

  

Hi folks,

I have migrated my web application to iis 7.5 Now I am using windows 7 as dev machine.

the problem is it takes several seconds to download a single page into web browser now. It contains only 300 records.

Everything is ok on prod website though. Prod version contains up to 200000 records .I can't also use code profile tool of red gate to analyze possible bottlenecks since the software in question can't restart IIS. No errors in IIS logs. I am using ISAPI Rewrite 3 filter by Helicon to apply some URL rewriting rules. I am thinking about conflict between ISAPI rewriting rules and default IIS 7.5 request filtering rules, since the IIS request filtering module gets a higher priority than even the built-in IIS 7.5 rewriter module. Is it possible to tweak the module through web.config so that priority is given to ISAPI rewriting rules or something like that?

Frankly, I spent several days to figure out solution. No success...

I've also deployed the application on IIS 5.1. Everything works fine. Any ideas about possible solution for IIS 7.5?


Windows with C++: Decoding Windows Vista Icons with WIC

  

In this month's installment, Kenny Kerr sings the praises of the new Visual C++ 2008 Feature Pack, which brings modern conveniences to Visual C++.

Kenny Kerr

MSDN Magazine June 2008


.NET Matters: IFileOperation in Windows Vista

  

The author creates a managed wrapper to use the new IFileOperations interface in Windows Vista from managed code.

Stephen Toub

MSDN Magazine December 2007


Gadgets: Build Your Own Windows Vista Sidebar Gadget

  

A Sidebar gadget is a powerful little too that's surprisingly easy to create. Get in on the fun with Donavon West.

Donavon West

MSDN Magazine August 2007


Windows with C++: Windows Vista Control Enhancements

  

With the release of Windows Vista, C++ developers will be happy to know there's plenty of magic left to perform. This new column will provide the necessary insight.

Kenny Kerr

MSDN Magazine August 2007


Security: Applying Cryptography Using The CNG API In Windows Vista

  

Cryptography Next Generation (CNG) is meant to be a long-term replacement for the CryptoAPI, providing replacements for all of the cryptographic primitives it offered.

Kenny Kerr

MSDN Magazine July 2007


CONCURRENCY: Synchronization Primitives New To Windows Vista

  

Windows Vista has lots of goodies for native C++ developers including condition variables, slim reader/writer locks, and one-time initialization.

Robert Saccone and Alexander Taskov

MSDN Magazine June 2007


Least Privilege: Teach Your Apps To Play Nicely With Windows Vista User Account Control

  

User Account Control in Windows Vista keeps the OS safe from intentional and accidental configuration changes.

Chris Corio

MSDN Magazine January 2007


Vista and Office: View Data Your Way With Our Managed Preview Handler Framework

  

Stephen Toub shows you how to write your own Preview handlers for Windows Vista and Outlook 2007.

Stephen Toub

MSDN Magazine January 2007


Desktop Security: Create Custom Login Experiences With Credential Providers For Windows Vista

  

Why is a change to the Windows logon plug-in interface so exciting? Because with credential providers you can customize the logon experience for your users.

Dan Griffin

MSDN Magazine January 2007


Editor's Note: A New Year-A New Vista

  

Josh Trupin revs the engine to get us all ready for Windows Vista.

Joshua Trupin

MSDN Magazine January 2007


Locale Hero: Enable Global Apps With Locale Builder And Windows Vista

  

Everything you need to know about locales in Windows Vista.

Kieran Snyder and Shawn Steele

MSDN Magazine December 2006


Smart Storage: Protect Your Data Via Managed Code And The Windows Vista Smart Card APIs

  

Smart cards are a compelling alternative to the reliance on passwords, which are the weakest link in authentication systems. Get the Windows smart card programming basics here.

Dan Griffin

MSDN Magazine November 2006


Peer To Peer: Harness The Power Of P2P Communication In Windows Vista And WCF

  

P2P applications face a number of barriers preventing their wide adoption as a productivity solution. Fortunately Windows Vista improves the situation, as you'll learn here.

Justin Smith

MSDN Magazine October 2006


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend