/*---------------------------------------------------------------------- | CUPnP::CreateServer +---------------------------------------------------------------------*/ CUPnPServer* CUPnP::CreateServer(int port /* = 0 */) { CUPnPServer* device = new CUPnPServer(CSysInfo::GetDeviceName().c_str(), CUPnPSettings::GetInstance().GetServerUUID().length() ? CUPnPSettings::GetInstance().GetServerUUID().c_str() : NULL, port); // trying to set optional upnp values for XP UPnP UI Icons to detect us // but it doesn't work anyways as it requires multicast for XP to detect us device->m_PresentationURL = NPT_HttpUrl(m_IP.c_str(), CSettings::GetInstance().GetInt(CSettings::SETTING_SERVICES_WEBSERVERPORT), "/").ToString(); device->m_ModelName = "MrMC"; device->m_ModelNumber = CSysInfo::GetVersion().c_str(); device->m_ModelDescription = "MrMC - Media Server"; device->m_ModelURL = "http://mrmc.tv/"; device->m_Manufacturer = "MrMC Foundation"; device->m_ManufacturerURL = "http://mrmc.tv/"; device->SetDelegate(device); return device; }
/*---------------------------------------------------------------------- | CUPnP::CreateServer +---------------------------------------------------------------------*/ CUPnPServer* CUPnP::CreateServer(int port /* = 0 */) { CUPnPServer* device = new CUPnPServer(g_infoManager.GetLabel(SYSTEM_FRIENDLY_NAME), g_settings.m_UPnPUUIDServer.length()?g_settings.m_UPnPUUIDServer.c_str():NULL, port); // trying to set optional upnp values for XP UPnP UI Icons to detect us // but it doesn't work anyways as it requires multicast for XP to detect us device->m_PresentationURL = NPT_HttpUrl(m_IP, atoi(g_guiSettings.GetString("services.webserverport")), "/").ToString(); device->m_ModelName = "XBMC Media Center"; device->m_ModelNumber = g_infoManager.GetVersion().c_str(); device->m_ModelDescription = "XBMC Media Center - Media Server"; device->m_ModelURL = "http://www.xbmc.org/"; device->m_Manufacturer = "Team XBMC"; device->m_ManufacturerURL = "http://www.xbmc.org/"; device->SetDelegate(device); return device; }