• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

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.
0
srini_kandimalla
Asked:
srini_kandimalla
1 Solution
 
defc0n1Commented:
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now