Changeset 5284 for source/ariba/overlay


Ignore:
Timestamp:
Jul 24, 2009, 3:23:11 PM (15 years ago)
Author:
mies
Message:

+ added new transport modules and adapted ariba to them
+ exchange endpoint descriptors an link establishment
+ clean up of base communication
+ link establishment with in the presence of multiple endpoints
+ local discovery for ipv6, ipv4 and bluetooth mac addresses

Location:
source/ariba/overlay
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.cpp

    r5274 r5284  
    185185        // route message using overlay
    186186        else {
    187                 logging_error("Could not send message");
     187                logging_error("Could not send message descriptor=" << ld );
    188188                logging_debug( "sendMessage: Routing message to node " << ld->remoteNode.toString() );
    189189                overlayInterface->routeMessage( ld->remoteNode, message );
     
    689689
    690690void BaseOverlay::onLinkUp(const LinkID& id,
    691         const NetworkLocator* local, const NetworkLocator* remote) {
     691        const address_v* local, const address_v* remote) {
    692692        logging_debug( "Link up with base communication link id=" << id );
    693693
     
    740740                // if link is a relayed link ->convert to direct link
    741741                if (ld->relay) {
     742                        logging_force( "Converting to direct link: " << ld );
    742743                        ld->up = true;
    743744                        ld->relay = false;
     
    756757
    757758void BaseOverlay::onLinkDown(const LinkID& id,
    758         const NetworkLocator* local, const NetworkLocator* remote) {
     759        const address_v* local, const address_v* remote) {
    759760
    760761        // get descriptor for link
     
    780781
    781782void BaseOverlay::onLinkChanged(const LinkID& id,
    782         const NetworkLocator* oldlocal, const NetworkLocator* newlocal,
    783         const NetworkLocator* oldremote, const NetworkLocator* newremote) {
     783        const address_v* oldlocal, const address_v* newlocal,
     784        const address_v* oldremote, const address_v* newremote) {
    784785
    785786        // get descriptor for link
     
    797798
    798799void BaseOverlay::onLinkFail(const LinkID& id,
    799         const NetworkLocator* local, const NetworkLocator* remote) {
     800        const address_v* local, const address_v* remote) {
    800801        logging_debug( "Link fail with base communication link id=" << id );
    801802
     
    813814}
    814815
    815 void BaseOverlay::onLinkQoSChanged(const LinkID& id, const NetworkLocator* local,
    816         const NetworkLocator* remote, const QoSParameterSet& qos) {
     816void BaseOverlay::onLinkQoSChanged(const LinkID& id, const address_v* local,
     817        const address_v* remote, const QoSParameterSet& qos) {
    817818        logging_debug( "Link quality changed with base communication link id=" << id );
    818819
     
    826827}
    827828
    828 bool BaseOverlay::onLinkRequest( const LinkID& id, const NetworkLocator* local,
    829         const NetworkLocator* remote ) {
    830         logging_debug("Accepting link request from " << remote->toString() );
     829bool BaseOverlay::onLinkRequest( const LinkID& id, const address_v* local,
     830        const address_v* remote ) {
     831        logging_debug("Accepting link request from " << remote->to_string() );
    831832        return true;
    832833}
     
    13581359                case OverlayMsg::typeDirectLink: {
    13591360                        LinkDescriptor* rld = getDescriptor( overlayMsg->getRelayLink() );
     1361                        logging_force( "Received direct link convert notification for " << rld );
    13601362                        rld->communicationId = ld->communicationId;
    13611363                        rld->communicationUp = true;
  • source/ariba/overlay/BaseOverlay.h

    r5151 r5284  
    118118namespace overlay {
    119119
     120using namespace ariba::addressing;
     121
    120122class LinkDescriptor;
    121123
     
    285287         * @see ariba::communication::CommunicationEvents.h
    286288         */
    287         virtual void onLinkUp(const LinkID& id, const NetworkLocator* local,
    288                 const NetworkLocator* remote);
    289 
    290         /**
    291          * @see ariba::communication::CommunicationEvents.h
    292          */
    293         virtual void onLinkDown(const LinkID& id, const NetworkLocator* local,
    294                 const NetworkLocator* remote);
     289        virtual void onLinkUp(const LinkID& id, const address_v* local,
     290                const address_v* remote);
     291
     292        /**
     293         * @see ariba::communication::CommunicationEvents.h
     294         */
     295        virtual void onLinkDown(const LinkID& id, const address_v* local,
     296                const address_v* remote);
    295297
    296298        /**
     
    298300         */
    299301        virtual void onLinkChanged(const LinkID& id,
    300                 const NetworkLocator* oldlocal, const NetworkLocator* newlocal,
    301                 const NetworkLocator* oldremote, const NetworkLocator* newremote);
    302 
    303         /**
    304          * @see ariba::communication::CommunicationEvents.h
    305          */
    306         virtual void onLinkFail(const LinkID& id, const NetworkLocator* local,
    307                 const NetworkLocator* remote);
     302                const address_v* oldlocal, const address_v* newlocal,
     303                const address_v* oldremote, const address_v* newremote);
     304
     305        /**
     306         * @see ariba::communication::CommunicationEvents.h
     307         */
     308        virtual void onLinkFail(const LinkID& id, const address_v* local,
     309                const address_v* remote);
    308310
    309311        /**
     
    311313         */
    312314        virtual void onLinkQoSChanged(const LinkID& id,
    313                 const NetworkLocator* local, const NetworkLocator* remote,
     315                const address_v* local, const address_v* remote,
    314316                const QoSParameterSet& qos);
    315317
     
    317319         * @see ariba::communication::CommunicationEvents.h
    318320         */
    319         virtual bool onLinkRequest(const LinkID& id, const NetworkLocator* local,
    320                 const NetworkLocator* remote);
     321        virtual bool onLinkRequest(const LinkID& id, const address_v* local,
     322                const address_v* remote);
    321323
    322324        /**
  • source/ariba/overlay/LinkDescriptor.h

    r5151 r5284  
    128128                s << "serv=" << service.toString() << " ";
    129129                s << "overId=" << overlayId.toString().substr(0,6) << " ";
     130                s << "commUp=" << communicationUp << " ";
    130131                s << "commId=" << communicationId.toString().substr(0,6) << " ";
    131132                s << "usedAsRel=" << usedAsRelay << " ";
Note: See TracChangeset for help on using the changeset viewer.