RDK Documentation (Open Sourced RDK Components)
connectivity.h
1 #ifndef CONNECTIVITY_H_
2 #define CONNECTIVITY_H_
3 
4 #include <vector>
5 #include <string>
6 
7 /*
8  * returns connectivity test endpoints as a vector of strings
9  * endpoints are read from the file /opt/persistent/connectivity_test_endpoints
10  * - this file must list endpoints separated by whitespace or newline
11  * - if this file is empty or has only spaces/tabs, defaults will be populated
12  */
13 int get_connectivity_test_endpoints(std::vector<std::string>& endpoints);
14 
15 bool set_connectivity_test_endpoints(const std::vector<std::string>& endpoints);
16 
17 bool test_connectivity(long timeout_ms);
18 
19 #endif /* CONNECTIVITY_H_ */