Link to home
Start Free TrialLog in
Avatar of olegsp
olegsp

asked on

Listen to a port

I need to write an app which would listen to a certain port number, used by another program P (both running on my computer), and log all data passing through this port. My app must not interfere with P, and the only reason I need it for is to see what P is sending/receiving at this port.

I do not even know if it's possible. Any suggestions on how I can do this ?
Avatar of pagladasu
pagladasu

Take a look at this site. Maybe, it will help you:
http://www.codeguru.com/network/commspy.shtml
I guess, you can use CSocket in the client mode of this purpose. See the documentation in MSDN for CSocket
btw. the new address of codeguru
is:
http://codeguru.developer.com

the old address is no longer available.

regards
kishk91
ASKER CERTIFIED SOLUTION
Avatar of mattdaimon
mattdaimon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial