Changeset 4895


Ignore:
Timestamp:
Jul 14, 2009, 10:45:34 AM (15 years ago)
Author:
Christoph Mayer
Message:

bootstrap test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/pingpong/main.cpp

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