C # httpwatch: reduce HttpWatch to code that can be used for secondary development,
1. Preface
This is also because of the project's needs. We have two ways to understand packet capture.
1. Use a proxy to capture packets, write a Transit server, and you can get, send, and any data returned by the server. (Because of a problem during the operation, I gave up)
2. If you do not use wincap, you can use Socket. RAW to capture packets. The problem is that packet loss may occur.
First watch:
2. Origin of this Article
As a result of reading, the great god's menstrual post, thought for a moment, indeed ,. the Open Source degree of the NET community is indeed catching up with java. c/c ++ is a little worse, because many codes are not easy to find. Even if they are found, they are not easy to be open-source. A lot of code has been written. When. NET was released, the company actually asked all to be rewritten with c ++, because C ++ is not easy to crack with vmp, which is understandable,
I downloaded an Httpwatch open-source code. I don't know how to decompile it or how to obtain it. Here, I developed the code to get the final data. However, the Code is too large to analyze the specific content one by one. So today I looked at the code and analyzed it again to get today's program. I don't dare to hide it in private, so I also want to share it. Maybe everyone will use it as well?
3. Special thanks
Of course, first of all, I would like to thank the original author, who does not have today's code. Thank you again, brother of the menstruation post.
4. Support for Open Source
If it is purely technical, it does not involve business, core content and process operations, and so on, we all support open source and are willing to open source, but for core things, it may be retained. This is beyond doubt.
I have been writing code for more than three years. I don't know what to say. NET's colleagues hope to encourage me.
Download the code: HttpWatch.zip