hueplusplus
1.0.0
|
Class that looks for UPnP devices using an m-search package. More...
#include <hueplusplus/UPnP.h>
Public Member Functions | |
std::vector< std::pair< std::string, std::string > > | getDevices (std::shared_ptr< const IHttpHandler > handler) |
Searches for UPnP devices and returns all found ones. More... | |
Class that looks for UPnP devices using an m-search package.
std::vector< std::pair< std::string, std::string > > hueplusplus::UPnP::getDevices | ( | std::shared_ptr< const IHttpHandler > | handler | ) |
Searches for UPnP devices and returns all found ones.
It does it by sending an m-search packet and waits for all responses. Since responses can be received multiple times this function conveniently removes all duplicates.
handler | HttpHandler for communication |
std::system_error | when system or socket operations fail |