Reworked demo to use a separate thread to continuously poll for and print captured packets.