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 

Fast Port Mapping possible?

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



Joined: 14 May 2007
Posts: 12

PostPosted: Tue Jun 05, 2007 11:32 am    Post subject: Fast Port Mapping possible? Reply with quote

Hi there,

I have noticed in the code and in the given sample that you need
to initiate a discovery process (using upnpDiscover) in order to fill
the devlist variable then send a request to the IGD for port
mapping. As the discovery is a lengthy process, do u think it would be
possible to send a port mapping request to the IGD without discovering
the upnp IGD first? This would be very much useful for bittorrent p2p
applications where knowing the external listen port (if upnp mapping
succeed ) before contacting the tracker is vital.

Thank you for your time.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Tue Jun 05, 2007 11:49 am    Post subject: Re: Fast Port Mapping possible? Reply with quote

ramytabet wrote:
Hi there,

I have noticed in the code and in the given sample that you need
to initiate a discovery process (using upnpDiscover) in order to fill
the devlist variable then send a request to the IGD for port
mapping. As the discovery is a lengthy process, do u think it would be
possible to send a port mapping request to the IGD without discovering
the upnp IGD first? This would be very much useful for bittorrent p2p
applications where knowing the external listen port (if upnp mapping
succeed ) before contacting the tracker is vital.

Thank you for your time.


The discovery process is mandatory in order to get the url where request are to be sent to the UPnP IGD. You would have to know this data in advance in order to bypass the discovery process.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Sun Sep 02, 2007 12:30 am    Post subject: Reply with quote

The very latest version miniupnpc can work together with minissdpd in order to have immediate "discovery".
get thoses files :
miniupnpc-20070902.tar.gz
minissdpd-20070902.tar.gz
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
hanifkhan



Joined: 20 Dec 2014
Posts: 1
Location: Pakistan

PostPosted: Sat Dec 20, 2014 5:48 am    Post subject: Reply with quote

As the discovery is a lengthy process, do u think it would be
possible to send a port mapping request to the IGD without discovering
the upnp IGD first? This would be very much useful for bittorrent p2p
applications where knowing the external listen port (if upnp mapping
succeed ) before contacting the tracker is vital.




____________________
Are you worried about NS0-156 brain dumps dumps exam testking.us - LX0-101 brain dumps preparation? We offer up-to-dated hood practice questions and www.holycross.edu


Last edited by hanifkhan on Tue Jan 06, 2015 12:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Sat Dec 20, 2014 9:05 am    Post subject: Reply with quote

hanifkhan wrote:
As the discovery is a lengthy process, do u think it would be
possible to send a port mapping request to the IGD without discovering
the upnp IGD first? This would be very much useful for bittorrent p2p
applications where knowing the external listen port (if upnp mapping
succeed ) before contacting the tracker is vital.

of course you can skip the discovery process if you already know the Root description URL of the device to use.
With the miniUPnPc library, just use the UPNP_GetIGDFromUrl() function.
Code:

int
UPNP_GetIGDFromUrl(const char * rootdescurl,
                   struct UPNPUrls * urls,
                   struct IGDdatas * data,
                   char * lanaddr, int lanaddrlen);

use the -u argument of upnpc command line utility
_________________
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.