Not sure if this is what your looking for,
I assume you want to monitor a TCP/IP Port!
I did a quick search on Google, for...
Monitor TCP/IP Ports, Monitor TCP/IP Port Buffers
try this link...
How To Monitor TCP/IP Ports in Use
If this isn't what your looking for, try searching the web using my search strings above, modify them to return different sites... I saw plenty of links regarding to Port Buffers.
I know with serial/parallel ports you can use the InBufferCount and InBufferSize, to detect data. I would think TCP/IP ports would be similiar.
Be sure to post your final results, for future viewers searching the posts.
Hope this helps...
AccessGuruCarl
Programmers helping programmers
you can't find a better site.