Changeset 12438 for source/ariba/overlay
- Timestamp:
- Oct 2, 2013, 12:01:09 PM (11 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r12060 r12438 795 795 796 796 BaseOverlay::BaseOverlay() : 797 started(false),state(BaseOverlayStateInvalid), 797 started(false), 798 connected(false), 799 state(BaseOverlayStateInvalid), 798 800 bc(NULL), 799 801 nodeId(NodeID::UNSPECIFIED), spovnetId(SpoVNetID::UNSPECIFIED), … … 1245 1247 } 1246 1248 1247 // TODO AKTUELL: sequence numbers 1249 // TODO XXX ----> coordinate with QUIC-efforts !! 1250 // TODO aktuell: sequence numbers 1248 1251 // TODO seqnum on fast path ? 1249 1252 ld->last_sent_seqnum.increment(); … … 1620 1623 // erase mapping 1621 1624 eraseDescriptor(ld->overlayId); 1625 1626 1627 // notify the application if this is the last link to a different node 1628 if ( connected ) 1629 { 1630 bool active_links = false; 1631 1632 // look for links that are still active 1633 foreach( LinkDescriptor* ld, links ) 1634 { 1635 if ( isLinkDirectVital(ld) ) 1636 { 1637 active_links = true; 1638 break; 1639 } 1640 } 1641 1642 if ( ! active_links ) 1643 { 1644 connected = false; 1645 1646 foreach( NodeListener* i, nodeListeners ) 1647 i->onOverlayDisconnected( spovnetId ); 1648 } 1649 } 1650 1622 1651 } 1623 1652 … … 2093 2122 sideport->onLinkUp( ld->overlayId, nodeId, ld->remoteNode, this->spovnetId ); 2094 2123 2124 2125 // notify the application if this is the first link to a different node 2126 if ( not connected ) 2127 { 2128 connected = true; 2129 2130 foreach( NodeListener* i, nodeListeners ) 2131 i->onOverlayConnected( spovnetId ); 2132 } 2133 2095 2134 return true; 2096 2135 } -
source/ariba/overlay/BaseOverlay.h
r12060 r12438 425 425 /// is the base overlay started yet 426 426 bool started; 427 428 /// »true« if we have neighbours, »false« otherwise 429 bool connected; 427 430 428 431 /// The state of the BaseOverlay
Note:
See TracChangeset
for help on using the changeset viewer.