Click here to Skip to main content
15,885,875 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
How I can get what requests are sent from computer and return another data (something like an antivirus internet security)? How it works? Is it possible to do in c#?
Posted
Comments
Sergey Alexandrovich Kryukov 3-Nov-14 13:43pm    
Not clear what do you want to achieve. Don't you mix up transport and security of data communication? What part is unclear to you? Remember it's very unlikely that anyone would write a whole book for you on so many subjects: networking, Internet and security.
—SA

1 solution

As Sergey said, this is a bit of a complex question. The short answer is no you cannot do AV activities in .NET like you can do with AV. Having working for a major AV company a lot of this companies have deep partnerships with various OS vendors to get special functionality exposed and enabled. This functionality is just not available in C#. You'll never be able to interact with the OS the way a ISV (Integrated Security Vendor) does in C#. You'll have to move lower level down into C++.

As for network communication the short answer is it depends. If you're looking for for levels 5 - 7 (incl) of the OSI networking model then perhaps an http listening might suffice. However if you want to go deeper then that that, you should look at SharpPCap. Which has some .net functionality for knowing when packets arrive and being able to analyze the packets.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900