Changeset 3037 for source/ariba/overlay/BaseOverlay.h
- Timestamp:
- Apr 22, 2009, 9:07:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.h
r2803 r3037 44 44 #include <algorithm> 45 45 #include <ctime> 46 #include <list> 47 #include <vector> 46 48 #include <boost/foreach.hpp> 47 49 … … 66 68 #include "ariba/overlay/messages/JoinReply.h" 67 69 70 using std::vector; 71 using std::list; 68 72 using std::cout; 69 73 using std::map; 70 74 using std::make_pair; 71 75 using std::pair; 76 using std::find; 72 77 73 78 using ariba::communication::EndpointDescriptor; … … 103 108 // in different namespace 104 109 namespace ariba { 105 namespace interface { 106 class UnderlayAbstraction; 107 }} 110 class Node; 111 } 108 112 109 113 namespace ariba { … … 117 121 118 122 use_logging_h( BaseOverlay ); 119 friend class ariba:: interface::UnderlayAbstraction;123 friend class ariba::Node; 120 124 121 125 public: … … 166 170 const ServiceID& service 167 171 ); 172 173 /** 174 * Get a list of overlay neighboring nodes. 175 */ 176 vector<NodeID> getOverlayNeighbors() const; 168 177 169 178 /** … … 324 333 static const LinkItem UNSPECIFIED; 325 334 326 LinkItem( const LinkID& _link, const NodeID& _node, 335 LinkItem( const LinkID& _link, const NodeID& _node, 327 336 const ServiceID& _service, ServiceInterface* _interface ) 328 : link( _link ), node( _node ), service( _service ), interface( _interface ), 337 : link( _link ), node( _node ), service( _service ), interface( _interface ), 329 338 autolink( false ), lastuse( time(NULL) ) { 330 339 } … … 350 359 typedef pair<const LinkID,LinkItem> LinkPair; 351 360 LinkMapping linkMapping; 352 361 353 362 // nodes with pending joines. TODO: should be cleaned every some seconds 354 363 // add timestamps to each, and check on occasion
Note:
See TracChangeset
for help on using the changeset viewer.