Ignore:
Timestamp:
Jun 29, 2009, 11:10:20 AM (15 years ago)
Author:
Christoph Mayer
Message:
 
Location:
source/ariba/communication
Files:
4 edited

Legend:

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

    r4438 r4582  
    188188
    189189        // create link identifier and link descriptor
    190         if (linkid.isUnspecified()) linkid = LinkID::create();
     190        if (linkid.isUnspecified()){
     191                linkid = LinkID::create();
     192                assert(!linkid.isUnspecified());
     193        }
     194
    191195        logging_debug( "creating new local descriptor entry with local link id " << linkid.toString() );
    192196        LinkDescriptor linkDescriptor( linkid, local, LinkID::UNSPECIFIED, remote, descriptor, false );
     
    199203
    200204        logging_debug( "sending out base messages with request to open link to " << remote->toString() );
    201         AribaBaseMsg baseMsg( remote, AribaBaseMsg::LINK_STATE_OPEN_REQUEST, linkid,
    202                                                                 LinkID::UNSPECIFIED );
     205        AribaBaseMsg baseMsg(
     206                        remote,
     207                        AribaBaseMsg::LINK_STATE_OPEN_REQUEST,
     208                        linkid,
     209                        LinkID::UNSPECIFIED );
     210
    203211        transport->sendMessage(&baseMsg);
    204 
    205212        return linkid;
    206213}
     
    360367                LinkID remoteLink = spovmsg->getLocalLink();
    361368
     369                if(localLink.isUnspecified()){
     370                        logging_error("local link is unspecified");
     371                        return false;
     372                }
     373
     374                if(remoteLink.isUnspecified()){
     375                        logging_error("remote link is unspecified");
     376                        return false;
     377                }
    362378
    363379                const NetworkLocator* localLocator  = dynamic_cast<const NetworkLocator*>(localDescriptor.locator);
  • source/ariba/communication/BaseCommunication.h

    r3712 r4582  
    228228
    229229                LinkDescriptor() :
    230                         localLink(),
     230                        localLink(LinkID::UNSPECIFIED),
    231231                        localLocator(NULL),
    232                         remoteLink(),
     232                        remoteLink(LinkID::UNSPECIFIED),
    233233                        remoteLocator(NULL),
    234234                        remoteEndpoint(EndpointDescriptor::UNSPECIFIED),
  • source/ariba/communication/messages/AribaBaseMsg.cpp

    r3690 r4582  
    7474
    7575        switch( getType() ){
    76                 case LINK_STATE_DATA:           return "LINK_STATE_DATA";
     76                case LINK_STATE_DATA:                   return "LINK_STATE_DATA";
    7777                case LINK_STATE_OPEN_REQUEST:   return "LINK_STATE_OPEN_REQUEST";
    7878                case LINK_STATE_OPEN_REPLY:     return "LINK_STATE_OPEN_REPLY";
    7979                case LINK_STATE_CLOSE_REQUEST:  return "LINK_STATE_CLOSE_REQUEST";
    80                 case LINK_STATE_UPDATE:         return "LINK_STATE_UPDATE";
    81                 default:                        "unknown";
     80                case LINK_STATE_UPDATE:                 return "LINK_STATE_UPDATE";
     81                default:                                                "unknown";
    8282        }
    8383
  • source/ariba/communication/messages/AribaBaseMsg.h

    r3690 r4582  
    7171        } LINK_STATE;
    7272
    73         AribaBaseMsg(   const Address* address    = NULL,
     73        AribaBaseMsg(
     74                        const Address* address    = NULL,
    7475                        LINK_STATE _state         = LINK_STATE_DATA,
    7576                        const LinkID& _localLink  = LinkID::UNSPECIFIED,
Note: See TracChangeset for help on using the changeset viewer.