j.n
j.n

Reputation: 23

TCP Incoming packet logger

I can't find any information about making a tcp/ip packet logger in a book. can someone point me in right direction or a book reference would be helpful.

Upvotes: 2

Views: 590

Answers (1)

Nico Huysamen
Nico Huysamen

Reputation: 10417

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.

Upvotes: 2

Related Questions