Changeset 4851 for source


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

-mehr stuff für periodic broadcast

Location:
source/ariba
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/Makefile.am

    r4850 r4851  
    336336  utility/bootstrap/modules/multicastdns/MulticastDns.cpp \
    337337  utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp \
    338   utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.cpp
     338  utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.cpp \
     339  utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcastMessage.cpp
    339340 
    340341nobase_libariba_la_HEADERS += \
     
    344345  utility/bootstrap/modules/multicastdns/MulticastDns.h \
    345346  utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.h \
    346   utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
     347  utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h \
     348  utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcastMessage.h
    347349
    348350#------------> utility :: configuration
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.cpp

    r4850 r4851  
    5353
    5454#include "PeriodicBroadcast.h"
     55#include "PeriodicBroadcastMessage.h"
    5556
    5657namespace ariba {
     
    115116
    116117void PeriodicBroadcast::sendLocalServices(){
     118        boost::mutex::scoped_lock lock( localServicesMutex );
    117119
     120        ServiceList::iterator i = localServices.begin();
     121        ServiceList::iterator iend = localServices.end();
     122
     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        }
    118134}
    119135
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h

    r4850 r4851  
    4242#include "ariba/config.h"
    4343
     44#include <map>
     45#include <string>
    4446#include <iostream>
    45 #include <string>
    46 #include <map>
     47#include <boost/foreach.hpp>
    4748#include <boost/thread/mutex.hpp>
    4849#include <boost/thread/thread.hpp>
Note: See TracChangeset for help on using the changeset viewer.