Ignore:
Timestamp:
Jul 10, 2009, 3:16:49 PM (15 years ago)
Author:
Christoph Mayer
Message:

erste version für periodic broadcasting für ipv6 und ipv6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.cpp

    r4851 r4853  
    5353
    5454#include "PeriodicBroadcast.h"
    55 #include "PeriodicBroadcastMessage.h"
    5655
    5756namespace ariba {
     
    6059use_logging_cpp(PeriodicBroadcast);
    6160const long PeriodicBroadcast::timerinterval = 1000;
     61const unsigned int PeriodicBroadcast::serverport_v4 = 5634;
     62const unsigned int PeriodicBroadcast::serverport_v6 = 5636;
    6263
    63 PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback) : BootstrapModule(_callback) {
     64PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback)
     65        : BootstrapModule(_callback),
     66        server(io_service, &newRemoteServices, &newRemoteServicesMutex) {
    6467}
    6568
     
    121124        ServiceList::iterator iend = localServices.end();
    122125
    123         for( ; i != iend; i++){
    124 
    125                 PeriodicBroadcastMessage msg( i->second.name, i->second.info1, i->second.info2, i->second.info3 );
    126                 Data data = data_serialize( msg, DEFAULT_V );
    127                 uint8_t* pnt = data.getBuffer();
    128                 size_t len = data.getLength();
    129 
    130 
    131                 // TODO: ÃŒber socket rauspusten
    132 
    133         }
     126        for( ; i != iend; i++)
     127                server.sendservice( i->second );
    134128}
    135129
Note: See TracChangeset for help on using the changeset viewer.