Non blocking system call in SCAPY/Pyhton

In scapy, the recv() is not timing out or not responding when I enter Ctrl-C.
The documentation tells that it supports timeout_ms ( in millisec) parameter to  winpcap/libpacp. But I am not seeing its effect and it is not timing out when there are no packets arrival.

My environment is WindowsXP/Python/Scapy. I am sending L2 broadcast packets and receiving the responses, but I want  to come out once I receive all my responses or timeout.
srini_kandimallaAsked:
Who is Participating?
 
defc0n1Connect With a Mentor Commented:
It is hard to give you an accurate answer without a look at your code but I would recommend to open a separate thread for all potential blocking calls.

See the Python documentation about threads here: http://www.python.org/doc//current/library/threading.html?
0
 
James MurrellProduct SpecialistCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.