I want to create a thread that listens for packets for a given time period (say 30 seconds) and then returns any messages that are received whilst listening. I can do the packet collection stuff, but what is the code pattern for the threading / blocking code that lets the asynch activity run for some set time period?
thanks