void* HttpClient::open(const std::string& url, int32_t& contentLength, int32_t& httpStatus, uint64_t offset, uint64_t size) { void* pHandle = nullptr; char* pContentType = nullptr; handleUPnPResult(UpnpOpenHttpGetEx(url.c_str(), &pHandle, &pContentType, &contentLength, &httpStatus, static_cast<int32_t>(offset), static_cast<int32_t>(offset + size - 1), m_Timeout)); return pHandle; }
ERROR_TYPE IUpnp::OpenHttpGetEx(IN const char *url, IN OUT void **handle, IN OUT char **contentType, IN OUT int *contentLength, IN OUT int *httpStatus, IN int lowRange, IN int highRange,IN int timeout) { return (ERROR_TYPE)UpnpOpenHttpGetEx(url,handle,contentType,contentLength,httpStatus,lowRange,highRange,timeout); }