How would I be able to get all incoming packets, in C#? I have absolutely no idea on how to get started, so could you guys help me out? Thanks.

Recommended Answers

All 3 Replies

This does exactly what you are looking for (I think).

@Skata

I've looked at this before, and it looks nice, but does it include receiving the actual sent data? If it is easy enough to follow the source code, I can probably make that function myself, when I browse it tomorrow. Thanks for the link.

It doesn't look like you can in his sample treeview, but really all you are doing (for a tcp/ip packet) is reading 2 headers (the ip, then the tcp) and then the raw data follows.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.