Last change
on this file since 4836 was
4836,
checked in by Christoph Mayer, 14 years ago
|
einige avahi fixes und ablauf
|
File size:
723 bytes
|
Line | |
---|
1 | #include <string> |
---|
2 | #include "ariba/utility/system/StartupWrapper.h" |
---|
3 | #include "PingPong.h" |
---|
4 | |
---|
5 | using std::string; |
---|
6 | using ariba::utility::StartupWrapper; |
---|
7 | using ariba::application::pingpong::PingPong; |
---|
8 | |
---|
9 | #include "ariba/utility/bootstrap/BootstrapManager.h" |
---|
10 | using ariba::utility::BootstrapManager; |
---|
11 | |
---|
12 | int main( int argc, char** argv ) { |
---|
13 | |
---|
14 | // get config file |
---|
15 | string config = "../etc/settings.cnf"; |
---|
16 | if (argc >= 2) config = argv[1]; |
---|
17 | |
---|
18 | StartupWrapper::initConfig( config ); |
---|
19 | StartupWrapper::startSystem(); |
---|
20 | |
---|
21 | // this will do the main functionality and block |
---|
22 | PingPong ping; |
---|
23 | StartupWrapper::startup(&ping); |
---|
24 | |
---|
25 | // --> we will run blocking until <enter> is hit |
---|
26 | |
---|
27 | StartupWrapper::shutdown(&ping); |
---|
28 | StartupWrapper::stopSystem(); |
---|
29 | |
---|
30 | return 0; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.