File: findUrgPorts.cpp

package info (click to toggle)
urg 0.8.12-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,236 kB
  • sloc: sh: 10,014; cpp: 6,715; ansic: 2,388; makefile: 188
file content (32 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*!
  \example findUrgPorts.cpp

  \brief Sample to use FindUrgPorts function

  \author Satofumi KAMIMURA

  $Id: findUrgPorts.cpp 1737 2010-03-06 07:15:19Z satofumi $
*/

#include "findUrgPorts.h"
#include <SDL.h>

using namespace qrk;
using namespace std;


//! main
int main(int argc, char *argv[])
{
  vector<string> ports;
  findUrgPorts(ports);

  // display URG ports
  printf("ports: %u\n", ports.size());
  for (vector<string>::iterator it = ports.begin();
       it != ports.end(); ++it) {
    printf("%s\n", it->c_str());
  }

  return 0;
}