Logo Search packages:      
Sourcecode: libupnp4 version File versions  Download package

EXPORT_SPEC int UpnpSetWebServerRootDir ( const char *  rootDir  ) 

Sets the document root directory for the internal web server.

This directory is considered the root directory (i.e. "/") of the web server.

This function also activates or deactivates the web server. To disable the web server, pass NULL for rootDir; to activate, pass a valid directory string.

This function is not available when the web server is not compiled into the UPnP Library.
An integer representing one of the following:
  • UPNP_E_SUCCESS: The operation completed successfully.
  • UPNP_E_INVALID_ARGUMENT: rootDir is an invalid directory.
rootDir  [in] Path of the root directory of the web server.

Generated by  Doxygen 1.6.0   Back to index