source: sample/testdht/main.cpp@ 7464

Last change on this file since 7464 was 6760, checked in by mies, 15 years ago

added dht test case

File size: 619 bytes
Line 
1#include <string>
2#include "ariba/utility/system/StartupWrapper.h"
3#include "DHTTest.h"
4
5using std::string;
6using ariba::utility::StartupWrapper;
7using ariba::application::dhttest::DHTTest;
8
9int main( int argc, char** argv ) {
10
11 // get config file
12 string config = "./settings.cnf";
13 if (argc >= 2) config = argv[1];
14
15 StartupWrapper::initConfig( config );
16 StartupWrapper::startSystem();
17
18 // this will do the main functionality and block
19 DHTTest test;
20 StartupWrapper::startup(&test);
21
22 // --> we will run blocking until <enter> is hit
23
24 StartupWrapper::shutdown(&test);
25 StartupWrapper::stopSystem();
26
27 return 0;
28}
Note: See TracBrowser for help on using the repository browser.