I wish to somehow "intercept" a small piece of incoming data over
TCP/IP dial up network connection between a client and server program.
Both the source and destination IP addresses and ports are known.

Can I use CAsyncSocket or CSocket classes to do this? If so, how do I
do it?

I suspect this is akin to "packet sniffing" but I am only interested
in "peeking" at one small piece of incoming data - that way I can
automate some of my program. Can anybody explain how these concepts

Many thanks!