phpfood wrote: > On windows XP, I'm running a program that sends TCP connections on port > 5039. I'v ran wireshark to determine this. I want to create a simple > program that listens for these connections and intercepts and then turns > the data transferred into a string. From there I'd obviously like my > program to act and manipulate those strings, but for now just spitting > out that intercepted TCP data is good enough.
IIRC, wireshark uses libpcap for which there are no fewer than two python extension modules (though, I have not used either): http://pylibpcap.sourceforge.net/ http://code.google.com/p/pypcap/ Less like a socket proxy, more like packet sniffing. > > I was reading up on Twisted. http://twistedmatrix.com/ > Can someone get me started on how to do this with twisted framework or > anything else? _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor