View previous topic :: View next topic |
Author |
Message |
Y2JB
Joined: 28 Jan 2011 Posts: 4
|
Posted: Fri Jan 28, 2011 10:04 am Post subject: Non Blocking upnpDiscover |
|
|
It would be very helpful if you could add a version of upnpDiscover that does not block execution for several seconds. Maybe something like upnpDiscoverStart and upnpDiscoverProcess which then maybe raises an event (via a function callback) when it completes.
At the moment i am simply going to perform the discovery once when my app starts up so that the lag is hidden as i am not keen on adding a new thread to perform upnp.
What are the chances of this?
Cheers |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
Posted: Fri Jan 28, 2011 11:22 am Post subject: |
|
|
I had the project to do an asynchronous version of miniupnpc. But still no time to do it...
anyway, you can run the upnp discovery in a separated thread so it wont work your main thread. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|