miniupnpc man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

MINIUPNPC(3)							  MINIUPNPC(3)

NAME
       miniupnpc - UPnP client library

SYNOPSIS
DESCRIPTION
       The  miniupnpc  library	implement  the UPnP protocol defined to dialog
       with Internet Gateway Devices. It also has  the	ability	 to  use  data
       gathered	 by minissdpd(1) about UPnP devices up on the network in order
       to skip the long UPnP device discovery process.

       At first, upnpDiscover(3) has to be used to discover UPnP  IGD  present
       on  the	network.  Then	UPNP_GetValidIGD(3)  to	 select the right one.
       Alternatively, UPNP_GetIGDFromUrl(3) could be used to bypass  discovery
       process	if  the	 root  description  url of the device to use is known.
       Then all the UPNP_* functions can be used, such as  UPNP_GetConnection‐
       TypeInfo(3), UPNP_AddPortMapping(3), etc...

HEADER FILES
       miniupnpc.h
	      That's  the  main header file for the miniupnpc library API.  It
	      contains all the functions and structures related to device dis‐
	      covery.

       upnpcommands.h
	      This  header file contain the UPnP IGD methods that are accessi‐
	      ble through the miniupnpc API. The name of the C	functions  are
	      matching	the UPnP methods names. ie: GetGenericPortMappingEntry
	      is UPNP_GetGenericPortMappingEntry.

API FUNCTIONS
       struct UPNPDev * upnpDiscover(int  delay,  const	 char  *  multicastif,
       const char * minissdpdsock, int localport, int ipv6, int * error);
	      execute  the  discovery  process.	 delay (in millisecond) is the
	      maximum time for waiting any  device  response.	If  available,
	      device  list  will be obtained from MiniSSDPd.  Default path for
	      minissdpd socket will be used if minissdpdsock argument is NULL.
	      If  multicastif  is  not	NULL,  it  will be used instead of the
	      default multicast interface for sending SSDP  discover  packets.
	      If localport is set to UPNP_LOCAL_PORT_SAME(1) SSDP packets will
	      be sent from the source port 1900 (same as destination port), if
	      set  to  UPNP_LOCAL_PORT_ANY(0) system assign a source port, any
	      other value will be attempted as the source port.	  If  ipv6  is
	      not 0, IPv6 is used instead of IPv4 for the discovery process.

       void freeUPNPDevlist(struct UPNPDev * devlist);
	      free the list returned by upnpDiscover().

       int  UPNP_GetValidIGD(struct UPNPDev * devlist, struct UPNPUrls * urls,
       struct IGDdatas * data, char * lanaddr, int lanaddrlen);
	      browse the list of device returned  by  upnpDiscover(),  find  a
	      live  UPnP internet gateway device and fill structures passed as
	      arguments with data used for UPNP methods invokation.

       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
	      description URL of the  UPnP  IGD	 is  known.   Fill  structures
	      passed as arguments with data used for UPNP methods invokation.

       void GetUPNPUrls(struct UPNPUrls *, struct IGDdatas *, const char *);

       void FreeUPNPUrls(struct UPNPUrls *);

SEE ALSO
       minissdpd(1)

BUGS
								  MINIUPNPC(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net