Like Wireshark. It's an open-source project, so feel free to check out its source code and learn from it.
mike_2000_17
21st Century Viking
3,143 posts since Jul 2010
Reputation Points: 2,062
Solved Threads: 625
Skill Endorsements: 41
While Wireshark is a great tool I, think it is a little hard to digest for something as simple as grabbing packets. It is probably easier to concentrate on the underlying libpcap to get started and move up from there.
L7Sqr
Practically a Posting Shark
851 posts since Feb 2011
Reputation Points: 253
Solved Threads: 155
Skill Endorsements: 7
Question Answered as of 1 Month Ago by
mike_2000_17
and
L7Sqr