I have some code:
…
reader.loop(0, callback)
…
(from here http://breakingcode.wordpress.com/2010/04/02/using-impacketpcapy-with-python-2-6-on-windows/)
How this “loop” named and where i can read about it or how to break that “loop” (how it works at all).
Thanx.
loopis not a keyword or other special construct in Python.readersimply has a member function calledloopthat takes two parameters. To find out what thisloopmember function does, check what kind of objectreaderis and look forloopin that class’ documentation.