Changeset 4888 for sample


Ignore:
Timestamp:
Jul 14, 2009, 8:41:54 AM (15 years ago)
Author:
Christoph Mayer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/pingpong/main.cpp

    r4866 r4888  
    77using ariba::application::pingpong::PingPong;
    88
    9 
    10 
    11 
    12 
    13 
    14 #include "ariba/utility/bootstrap/BootstrapManager.h"
    15 using ariba::utility::BootstrapManager;
    16 
    17 void 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 
    349int main( int argc, char** argv ) {
    35 
    36         debug();
    37         return 0;
    38 
    39 
    4010
    4111        // get config file
Note: See TracChangeset for help on using the changeset viewer.