- Timestamp:
- Jul 10, 2009, 3:16:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.cpp
r4851 r4853 53 53 54 54 #include "PeriodicBroadcast.h" 55 #include "PeriodicBroadcastMessage.h"56 55 57 56 namespace ariba { … … 60 59 use_logging_cpp(PeriodicBroadcast); 61 60 const long PeriodicBroadcast::timerinterval = 1000; 61 const unsigned int PeriodicBroadcast::serverport_v4 = 5634; 62 const unsigned int PeriodicBroadcast::serverport_v6 = 5636; 62 63 63 PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback) : BootstrapModule(_callback) { 64 PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback) 65 : BootstrapModule(_callback), 66 server(io_service, &newRemoteServices, &newRemoteServicesMutex) { 64 67 } 65 68 … … 121 124 ServiceList::iterator iend = localServices.end(); 122 125 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 ); 134 128 } 135 129
Note:
See TracChangeset
for help on using the changeset viewer.