miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Non Blocking upnpDiscover

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request
View previous topic :: View next topic  
Author Message
Y2JB



Joined: 28 Jan 2011
Posts: 4

PostPosted: Fri Jan 28, 2011 10:04 am    Post subject: Non Blocking upnpDiscover Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Fri Jan 28, 2011 11:22 am    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.