|
|
PUPNP_Api int | UpnpInit2 (const char *IfName, unsigned short DestPort) |
| Initializes the Linux SDK for UPnP Devices.
|
|
PUPNP_Api int | UpnpFinish (void) |
| Terminates the Linux SDK for UPnP Devices.
|
|
PUPNP_Api in_port_t | UpnpGetServerPort (void) |
| Returns the internal server IPv4 UPnP listening port.
|
|
PUPNP_Api unsigned short | UpnpGetServerPort6 (void) |
| Returns the internal server IPv6 link-local (LLA) UPnP listening port.
|
|
PUPNP_Api unsigned short | UpnpGetServerUlaGuaPort6 (void) |
| Returns the internal server IPv6 ULA or GUA UPnP listening port.
|
|
PUPNP_Api char * | UpnpGetServerIpAddress (void) |
| Returns the local IPv4 listening ip address.
|
|
PUPNP_Api char * | UpnpGetServerIp6Address (void) |
| Returns the IPv6 link-local listening ip address.
|
|
PUPNP_Api char * | UpnpGetServerUlaGuaIp6Address (void) |
| Returns the IPv6 unique-local or globally-unique listening ip address.
|
|
PUPNP_Api int | UpnpRegisterRootDevice (const char *const DescUrl, const Upnp_FunPtr Fun, const void *const Cookie, UpnpDevice_Handle *const Hnd) |
| Registers one root- or logical-device object with the UPnP Library to get a handle for it.
|
|
PUPNP_Api int | UpnpRegisterRootDevice2 (const Upnp_DescType descriptionType, const char *const description_const, const size_t bufferLen, const int config_baseURL, const Upnp_FunPtr Fun, const void *const Cookie, UpnpDevice_Handle *const Hnd) |
| Registers one root- or logical-device object with the UPnP Library with additional description and get a handle for it.
|
|
PUPNP_Api int | UpnpRegisterRootDevice3 (const char *const DescUrl, const Upnp_FunPtr Fun, const void *const Cookie, UpnpDevice_Handle *const Hnd, const int AddressFamily) |
| Registers one UPnP device object for a specific address family with the UPnP library and get a handle for it.
|
|
PUPNP_Api int | UpnpRegisterRootDevice4 (const char *const DescUrl, const Upnp_FunPtr Fun, const void *const Cookie, UpnpDevice_Handle *const Hnd, const int AddressFamily, const char *const LowerDescUrl) |
| Same as UpnpRegisterRootDevice3() with additional argument to specify a description URL.
|
|
PUPNP_Api int | UpnpUnRegisterRootDevice (UpnpDevice_Handle Hnd) |
| Unregisters a root device registered with UpnpRegisterRootDevice(), UpnpRegisterRootDevice2(), UpnpRegisterRootDevice3(), UpnpRegisterRootDevice4.
|
|
PUPNP_Api int | UpnpUnRegisterRootDeviceLowPower (UpnpDevice_Handle Hnd, int PowerState, int SleepPeriod, int RegistrationState) |
| Unregisters a root device registered with UpnpRegisterRootDevice(), UpnpRegisterRootDevice2(), UpnpRegisterRootDevice3(), UpnpRegisterRootDevice4 for Low Power.
|
|
PUPNP_Api int | UpnpRegisterClient (Upnp_FunPtr Fun, const void *Cookie, UpnpClient_Handle *Hnd) |
| Registers a control point application with the UPnP Library.
|
|
PUPNP_Api int | UpnpUnRegisterClient (UpnpClient_Handle Hnd) |
| Unregisters a control point application, unsubscribing all active subscriptions.
|
|
PUPNP_Api int | UpnpSetContentLength (UpnpClient_Handle Hnd, size_t contentLength) |
| Sets the content-length that the SDK will process on an incoming SOAP requests or responses.
|
|
PUPNP_Api int | UpnpSetMaxContentLength (size_t contentLength) |
| Sets the maximum content-length that the SDK will process on an incoming SOAP requests or responses.
|
|
|
PUPNP_Api int | UpnpSearchAsync (UpnpClient_Handle Hnd, int Mx, const char *Target_const, const void *Cookie_const) |
| Searches for devices matching the given search target.
|
|
PUPNP_Api int | UpnpSendAdvertisement (UpnpDevice_Handle Hnd, int Exp) |
| Sends out the discovery announcements for all devices and services contained within one root device.
|
|
PUPNP_Api int | UpnpSendAdvertisementLowPower (UpnpDevice_Handle Hnd, int Exp, int PowerState, int SleepPeriod, int RegistrationState) |
| Sends out the discovery announcements for all devices and services contained within one root device.
|
|
|
PUPNP_Api int | UpnpGetServiceVarStatus (UpnpClient_Handle Hnd, const char *ActionURL_const, const char *VarName_const, DOMString *StVar) |
| Queries the state of a state variable of a service on another device.
|
|
PUPNP_Api int | UpnpGetServiceVarStatusAsync (UpnpClient_Handle Hnd, const char *ActionURL_const, const char *VarName_const, Upnp_FunPtr Fun, const void *Cookie_const) |
| Queries the state of a variable of a service, generating a callback when the operation is complete.
|
|
PUPNP_Api int | UpnpSendAction (UpnpClient_Handle Hnd, const char *ActionURL_const, const char *ServiceType_const, const char *DevUDN_const, IXML_Document *Action, IXML_Document **RespNodePtr) |
| Sends a message to change a state variable in a service.
|
|
PUPNP_Api int | UpnpSendActionEx (UpnpClient_Handle Hnd, const char *ActionURL_const, const char *ServiceType_const, const char *DevUDN_const, IXML_Document *Header, IXML_Document *Action, IXML_Document **RespNodePtr) |
| Sends a message to change a state variable in a service.
|
|
PUPNP_Api int | UpnpSendActionAsync (UpnpClient_Handle Hnd, const char *ActionURL_const, const char *ServiceType_const, const char *DevUDN_const, IXML_Document *Act, Upnp_FunPtr Fun, const void *Cookie_const) |
| Sends a message to change a state variable in a service, generating a callback when the operation is complete.
|
|
PUPNP_Api int | UpnpSendActionExAsync (UpnpClient_Handle Hnd, const char *ActionURL_const, const char *ServiceType_const, const char *DevUDN_const, IXML_Document *Header, IXML_Document *Act, Upnp_FunPtr Fun, const void *Cookie_const) |
| Sends a message to change a state variable in a service, generating a callback when the operation is complete.
|
|
|
PUPNP_Api int | UpnpAcceptSubscription (UpnpDevice_Handle Hnd, const char *DevID_const, const char *ServName_const, const char **VarName_const, const char **NewVal_const, int cVariables, const Upnp_SID SubsId) |
| Accepts a subscription request and sends out the current state of the eventable variables for a service.
|
|
PUPNP_Api int | UpnpAcceptSubscriptionExt (UpnpDevice_Handle Hnd, const char *DevID_const, const char *ServName_const, IXML_Document *PropSet, const Upnp_SID SubsId) |
| Similar to UpnpAcceptSubscription() except that it takes a DOM document for the variables to event rather than an array of strings.
|
|
PUPNP_Api int | UpnpNotify (UpnpDevice_Handle Hnd, const char *DevID_const, const char *ServName_const, const char **VarName_const, const char **NewVal_const, int cVariables) |
| Sends out an event change notification to all control points subscribed to a particular service.
|
|
PUPNP_Api int | UpnpNotifyExt (UpnpDevice_Handle Hnd, const char *DevID_const, const char *ServName_const, IXML_Document *PropSet) |
| Similar to UpnpNotify() except that it takes a DOM document for the event rather than an array of strings.
|
|
PUPNP_Api int | UpnpRenewSubscription (UpnpClient_Handle Hnd, int *TimeOut, const Upnp_SID SubsId) |
| Renews a subscription that is about to expire.
|
|
PUPNP_Api int | UpnpRenewSubscriptionAsync (UpnpClient_Handle Hnd, int TimeOut, Upnp_SID SubsId, Upnp_FunPtr Fun, const void *Cookie_const) |
| Renews a subscription that is about to expire, generating a callback when the operation is complete.
|
|
PUPNP_Api int | UpnpSetMaxSubscriptions (UpnpDevice_Handle Hnd, int MaxSubscriptions) |
| Sets the maximum number of subscriptions accepted per service.
|
|
PUPNP_Api int | UpnpSetMaxSubscriptionTimeOut (UpnpDevice_Handle Hnd, int MaxSubscriptionTimeOut) |
| Sets the maximum time-out accepted for a subscription request or renewal.
|
|
PUPNP_Api int | UpnpSubscribe (UpnpClient_Handle Hnd, const char *EvtUrl_const, int *TimeOut, Upnp_SID SubsId) |
| Registers a control point to receive event notifications from a UPnP device.
|
|
PUPNP_Api int | UpnpSubscribeAsync (UpnpClient_Handle Hnd, const char *EvtUrl_const, int TimeOut, Upnp_FunPtr Fun, const void *Cookie_const) |
| Performs the same operation as UpnpSubscribe(), but returns immediately and calls the registered callback function when the operation is complete.
|
|
PUPNP_Api int | UpnpUnSubscribe (UpnpClient_Handle Hnd, const Upnp_SID SubsId) |
| Removes the subscription of a control point from a service previously subscribed to using UpnpSubscribe() or UpnpSubscribeAsync().
|
|
PUPNP_Api int | UpnpUnSubscribeAsync (UpnpClient_Handle Hnd, Upnp_SID SubsId, Upnp_FunPtr Fun, const void *Cookie_const) |
| Removes a subscription of a control point from a service previously subscribed to using UpnpSubscribe() or UpnpSubscribeAsync(), generating a callback when the operation is complete.
|
|
|
enum | UpnpOpenFileMode { UPNP_READ
, UPNP_WRITE
} |
| Represents the different types of searches that can be performed using the SDK for UPnP Devices API. More...
|
|
enum | Upnp_SType_e { UPNP_S_ALL
, UPNP_S_ROOT
, UPNP_S_DEVICE
, UPNP_S_SERVICE
} |
| Represents the different types of searches that can be performed using the SDK for UPnP Devices API. More...
|
|
enum | Upnp_DescType_e { UPNPREG_URL_DESC
, UPNPREG_FILENAME_DESC
, UPNPREG_BUF_DESC
} |
| Specifies the type of description in UpnpRegisterRootDevice2. More...
|
|
typedef int | UpnpClient_Handle |
| Returned when a control point application registers with UpnpRegisterClient().
|
|
typedef int | UpnpDevice_Handle |
| Returned when a device application registers with UpnpRegisterRootDevice(),UpnpRegisterRootDevice2(), UpnpRegisterRootDevice3() or UpnpRegisterRootDevice4().
|
|
typedef char | Upnp_SID[44] |
| Holds the subscription identifier for a subscription between a client and a device.
|
|
typedef enum Upnp_SType_e | Upnp_SType |
| Represents the different types of searches that can be performed using the SDK for UPnP Devices API.
|
|
typedef enum Upnp_DescType_e | Upnp_DescType |
| Represents the different types of searches that can be performed using the SDK for UPnP Devices API.
|
|
enum | Upnp_HttpMethod {
UPNP_HTTPMETHOD_PUT
, UPNP_HTTPMETHOD_DELETE
, UPNP_HTTPMETHOD_GET
, UPNP_HTTPMETHOD_HEAD
,
UPNP_HTTPMETHOD_POST
} |
| Different HTTP methods. More...
|
|
PUPNP_Api int | UpnpDownloadUrlItem (const char *url, char **outBuf, char *contentType) |
| Downloads a file specified in a URL.
|
|
PUPNP_Api int | UpnpOpenHttpGet (const char *url, void **handle, char **contentType, int *contentLength, int *httpStatus, int timeout) |
| Gets a file specified in a URL.
|
|
PUPNP_Api int | UpnpOpenHttpGetProxy (const char *url, const char *proxy_str, void **handle, char **contentType, int *contentLength, int *httpStatus, int timeout) |
| Gets a file specified in a URL through the specified proxy.
|
|
PUPNP_Api int | UpnpOpenHttpGetEx (const char *url_str, void **Handle, char **contentType, int *contentLength, int *httpStatus, int lowRange, int highRange, int timeout) |
| Gets specified number of bytes from a file specified in the URL.
|
|
PUPNP_Api int | UpnpReadHttpGet (void *Handle, char *buf, size_t *size, int timeout) |
| Gets specified number of bytes from a file specified in a URL.
|
|
PUPNP_Api int | UpnpHttpGetProgress (void *Handle, size_t *length, size_t *total) |
| Retrieve progress information of a http-get transfer.
|
|
PUPNP_Api int | UpnpCancelHttpGet (void *Handle) |
| Set the cancel flag of the handle parameter.
|
|
PUPNP_Api int | UpnpCloseHttpGet (void *Handle) |
| Closes the connection and frees memory that was allocated for the handle parameter.
|
|
PUPNP_Api int | UpnpOpenHttpPost (const char *url, void **handle, const char *contentType, int contentLength, int timeout) |
| Makes an HTTP POST request message, opens a connection to the server and sends the POST request to the server if the connection to the server succeeds.
|
|
PUPNP_Api int | UpnpWriteHttpPost (void *handle, char *buf, size_t *size, int timeout) |
| Sends a request to a server to copy the contents of a buffer to the URI specified in the UpnpOpenHttpPost() call.
|
|
PUPNP_Api int | UpnpCloseHttpPost (void *handle, int *httpStatus, int timeout) |
| Sends and receives any pending data, closes the connection with the server, and frees memory allocated during the UpnpOpenHttpPost() call.
|
|
PUPNP_Api int | UpnpOpenHttpConnection (const char *url, void **handle, int timeout) |
| Opens a connection to the server.
|
|
PUPNP_Api int | UpnpMakeHttpRequest (Upnp_HttpMethod method, const char *url, void *handle, UpnpString *headers, const char *contentType, int contentLength, int timeout) |
| Makes a HTTP request using a connection previously created by UpnpOpenHttpConnection().
|
|
PUPNP_Api int | UpnpWriteHttpRequest (void *handle, char *buf, size_t *size, int timeout) |
| Writes the content of a HTTP request initiated by a UpnpMakeHttpRequest() call. The end of the content should be indicated by a call to UpnpEndHttpRequest().
|
|
PUPNP_Api int | UpnpEndHttpRequest (void *handle, int timeout) |
| Indicates the end of a HTTP request previously made by UpnpMakeHttpRequest().
|
|
PUPNP_Api int | UpnpGetHttpResponse (void *handle, UpnpString *headers, char **contentType, int *contentLength, int *httpStatus, int timeout) |
| Gets the response from the server using a connection previously created by UpnpOpenHttpConnection().
|
|
PUPNP_Api int | UpnpReadHttpResponse (void *handle, char *buf, size_t *size, int timeout) |
| Reads the content of a response using a connection previously created by UpnpOpenHttpConnection().
|
|
PUPNP_Api int | UpnpCloseHttpConnection (void *handle) |
| Closes the connection created with UpnpOpenHttpConnection() and frees any memory associated with the connection.
|
|
PUPNP_Api int | UpnpDownloadXmlDoc (const char *url, IXML_Document **xmlDoc) |
| Downloads an XML document specified in a URL.
|
|
typedef void * | UpnpWebFileHandle |
| The type of handle returned by the web server for open requests.
|
|
typedef int(* | VDCallback_GetInfo) (const char *filename, UpnpFileInfo *info, const void *cookie, const void **request_cookie) |
| Get-info callback function prototype.
|
|
typedef UpnpWebFileHandle(* | VDCallback_Open) (const char *filename, enum UpnpOpenFileMode Mode, const void *cookie, const void *request_cookie) |
| Open callback function prototype.
|
|
typedef int(* | VDCallback_Read) (UpnpWebFileHandle fileHnd, char *buf, size_t buflen, const void *cookie, const void *request_cookie) |
| Read callback function prototype.
|
|
typedef int(* | VDCallback_Write) (UpnpWebFileHandle fileHnd, char *buf, size_t buflen, const void *cookie, const void *request_cookie) |
| Write callback function prototype.
|
|
typedef int(* | VDCallback_Seek) (UpnpWebFileHandle fileHnd, off_t offset, int origin, const void *cookie, const void *request_cookie) |
| Seek callback function prototype.
|
|
typedef int(* | VDCallback_Close) (UpnpWebFileHandle fileHnd, const void *cookie, const void *request_cookie) |
| Close callback function prototype.
|
|
typedef int(* | WebCallback_HostValidate) (const char *hostname, void *cookie) |
| Callback for validating HTTP requests HOST header values.
|
|
PUPNP_Api int | UpnpSetWebServerRootDir (const char *rootDir) |
| Sets the document root directory for the internal web server.
|
|
PUPNP_Api int | UpnpVirtualDir_set_GetInfoCallback (VDCallback_GetInfo callback) |
| Sets the get_info callback function to be used to access a web directory.
|
|
PUPNP_Api int | UpnpVirtualDir_set_OpenCallback (VDCallback_Open callback) |
| Sets the open callback function to be used to access a web directory.
|
|
PUPNP_Api int | UpnpVirtualDir_set_ReadCallback (VDCallback_Read callback) |
| Sets the read callback function to be used to access a web directory.
|
|
PUPNP_Api int | UpnpVirtualDir_set_WriteCallback (VDCallback_Write callback) |
| Sets the write callback function to be used to access a web directory.
|
|
PUPNP_Api int | UpnpVirtualDir_set_SeekCallback (VDCallback_Seek callback) |
| Sets the seek callback function to be used to access a web directory.
|
|
PUPNP_Api int | UpnpVirtualDir_set_CloseCallback (VDCallback_Close callback) |
| Sets the close callback function to be used to access a web directory.
|
|
PUPNP_Api int | UpnpEnableWebserver (int enable) |
| Enables or disables the webserver.
|
|
PUPNP_Api int | UpnpIsWebserverEnabled (void) |
| Returns the status of the webserver.
|
|
PUPNP_Api void | UpnpSetHostValidateCallback (WebCallback_HostValidate callback, void *cookie) |
| Set callback for validating HTTP requests HOST header values.
|
|
PUPNP_Api void | UpnpSetAllowLiteralHostRedirection (int enable) |
| Enable or disable literal IP redirection.
|
|
PUPNP_Api int | UpnpSetWebServerCorsString (const char *corsString) |
| Assign the Access-Control-Allow-Origin specfied by the input const char* cors_string parameter to the global CORS string.
|
|
PUPNP_Api int | UpnpAddVirtualDir (const char *newDirName, const void *cookie, const void **oldcookie) |
| Adds a web directory mapping.
|
|
PUPNP_Api int | UpnpRemoveVirtualDir (const char *dirName) |
| Removes a web directory mapping made with UpnpAddVirtualDir().
|
|
PUPNP_Api void | UpnpRemoveAllVirtualDirs (void) |
| Removes all web directory mappings.
|
|