#include "owlps-positioning.hh" int main(int argc, char** argv) { if (argc != 1 && argc != 5) { cout << "Usage:\towlps-positioningd\n" << " \towlps-positioningd AP_file Pt_file Topo_file Waypoint_file" << endl; return 1; } Server server(1234); if (argc == 5) { string apfile = argv[1]; string ptfile = argv[2]; string topofile = argv[3]; string wayfile = argv[4]; if (server.initFile(apfile, ptfile, topofile, wayfile)) { cerr << "Erreur lors de l'initialisation de la topology" << endl; return 1; } } server.start(); return 0; }