Sample to use FindUrgPorts function
#include "findUrgPorts.h" #include <cstdio> using namespace qrk; using namespace std; int main(int argc, char *argv[]) { vector<string> ports; findUrgPorts(ports); // Display all found ports printf("ports: %u\n", ports.size()); for (vector<string>::iterator it = ports.begin(); it != ports.end(); ++it) { printf("%s\n", it->c_str()); } #ifdef MSC getchar(); #endif return 0; }
1.7.6.1-20120122