Changeset 4866 for sample


Ignore:
Timestamp:
Jul 13, 2009, 9:42:32 AM (15 years ago)
Author:
Christoph Mayer
Message:

periodic bootstrap vervollständigt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/pingpong/main.cpp

    r4837 r4866  
    77using ariba::application::pingpong::PingPong;
    88
     9
     10
     11
     12
     13
     14#include "ariba/utility/bootstrap/BootstrapManager.h"
     15using ariba::utility::BootstrapManager;
     16
     17void debug(){
     18        StartupWrapper::startSystem();
     19        BootstrapManager& manager = BootstrapManager::instance();
     20        manager.registerModule(BootstrapManager::BootstrapTypePeriodicBroadcast);
     21        manager.publish("testname", "testinfo1", "testinfo2", "testinfo3");
     22
     23        getchar();
     24
     25        manager.revoke("testname");
     26        manager.unregisterModule(BootstrapManager::BootstrapTypePeriodicBroadcast);
     27        StartupWrapper::stopSystem();
     28}
     29
     30
     31
     32
     33
    934int main( int argc, char** argv ) {
     35
     36        debug();
     37        return 0;
     38
     39
    1040
    1141        // get config file
Note: See TracChangeset for help on using the changeset viewer.