⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 miniupnpc.3

📁 很小的linux下的upnp客户端代码
💻 3
字号:
\" $Id: miniupnpc.3,v 1.1 2007/10/08 22:45:08 nanard Exp $.TH miniupnpc 3.SH NAMEminiupnpc \- UPnP client library.SH SYNOPSIS.SH DESCRIPTIONThe miniupnpc library implement the UPnP protocol definedto dialog with Internet Gateway Devices. It also hasthe ability to use data gathered by minissdpd(1) aboutUPnP devices up on the network in order to skip thelong UPnP device discovery process..PPAt first, upnpDiscover(3) has to be used to discover UPnP IGD presenton the network. Then UPNP_GetValidIGD(3) to select the right one.Alternatively, UPNP_GetIGDFromUrl(3) could be used to bypass discoveryprocess if the root description url of the device to use is known.Then all the UPNP_* functions can be used, such asUPNP_GetConnectionTypeInfo(3), UPNP_AddPortMapping(3), etc....SH "HEADER FILES".IP miniupnpc.hThat's the main header file for the miniupnpc library API.It contains all the functions and structures related to device discovery..IP upnpcommands.hThis header file contain the UPnP IGD methods that are accessiblethrough the miniupnpc API. The name of the C functions are matchingthe UPnP methods names. ie: GetGenericPortMappingEntry isUPNP_GetGenericPortMappingEntry..SH "API FUNCTIONS".IP "struct UPNPDev * upnpDiscover(int timeout);"execute the discovery process..IP "void freeUPNPDevlist(struct UPNPDev * devlist);"free the list returned by upnpDiscover()..IP "int UPNP_GetValidIGD(struct UPNPDev * devlist, struct UPNPUrls * urls, struct IGDdatas * data, char * lanaddr, int lanaddrlen);"browse the list of device returned by upnpDiscover(), finda live UPnP internet gateway device and fill structures passed as argumentswith data used for UPNP methods invokation..IP "int UPNP_GetIGDFromUrl(const char * rootdescurl, struct UPNPUrls * urls, struct IGDdatas * data, char * lanaddr, int lanaddrlen);"permit to bypass the upnpDiscover() call if the xml root descriptionURL of the UPnP IGD is known.Fill structures passed as argumentswith data used for UPNP methods invokation..IP "void GetUPNPUrls(struct UPNPUrls *, struct IGDdatas *, const char *);".IP "void FreeUPNPUrls(struct UPNPUrls *);".SH "SEE ALSO"minissdpd(1).SH BUGS

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -