Ignore:
Timestamp:
Feb 24, 2009, 10:06:43 PM (15 years ago)
Author:
Christoph Mayer
Message:

-autolinks impl. (funktioniert noch nicht komplett, macht aber im moment nichts schlechter)
-einige fixes im ablauf etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/BaseCommunication.h

    r2482 r2483  
    4646#include <vector>
    4747#include <iostream>
     48#include <deque>
    4849#include <algorithm>
    4950#include <boost/foreach.hpp>
     
    7778using std::map;
    7879using std::vector;
     80using std::deque;
    7981using std::pair;
    8082using std::make_pair;
     
    222224                        remoteLink(),
    223225                        remoteLocator(NULL),
    224                         remoteEndpoint(EndpointDescriptor::UNSPECIFIED){
     226                        remoteEndpoint(EndpointDescriptor::UNSPECIFIED),
     227                        linkup(false) {
    225228                }
    226229
    227230                LinkDescriptor(const LinkID& _localLink, const NetworkLocator*& _localLocator,
    228231                                const LinkID& _remoteLink, const NetworkLocator*& _remoteLocator,
    229                                 const EndpointDescriptor& _remoteEndpoint ) :
     232                                const EndpointDescriptor& _remoteEndpoint, bool _linkup ) :
    230233                        localLink(_localLink),
    231234                        localLocator(_localLocator),
    232235                        remoteLink(_remoteLink),
    233236                        remoteLocator(_remoteLocator),
    234                         remoteEndpoint(_remoteEndpoint){
     237                        remoteEndpoint(_remoteEndpoint),
     238                        linkup(_linkup) {
    235239                }
    236240
     
    240244                        remoteLink(desc.remoteLink),
    241245                        remoteLocator(desc.remoteLocator),
    242                         remoteEndpoint(desc.remoteEndpoint){
     246                        remoteEndpoint(desc.remoteEndpoint),
     247                        linkup(desc.linkup) {
     248
     249                        BOOST_FOREACH( Message* msg, desc.waitingmsg ){
     250                                waitingmsg.push_back( msg );
     251                        }
    243252                }
    244253
     
    252261                const NetworkLocator*   remoteLocator;
    253262                EndpointDescriptor      remoteEndpoint;
     263
     264                bool                    linkup;
     265                deque<Message*>         waitingmsg;
    254266        };
    255267
Note: See TracChangeset for help on using the changeset viewer.