TCP Incoming packet logger
I can't find any information about making a tcp/ip packet logger in a book. can someone point me i开发者_JS百科n right direction or a book reference would be helpful.
If you simply need a program to log tcp packets, have a look at Wireshark. If you actually want to write your own logger, you can use the libpcap library. It is implemented in C and there are lots of tutorials / examples on the website. If you working in windows, you should have a look at WinPcap. Here is a nice easy tutorial for libpcap.
精彩评论