Non blocking system call in SCAPY/Pyhton

Posted on 2011-05-06
Last Modified: 2012-05-11
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.
Question by:srini_kandimalla
    LVL 3

    Accepted Solution

    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:
    LVL 31

    Expert Comment

    by:James Murrell
    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Installing Python 2.7.3 version on Windows operating system For installing Python first we need to download Python's latest version from URL" " You can also get information on Python scripting language from the above mentioned we…
    When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now