Changeset 4582 for source/ariba/communication
- Timestamp:
- Jun 29, 2009, 11:10:20 AM (16 years ago)
- Location:
- source/ariba/communication
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/BaseCommunication.cpp
r4438 r4582 188 188 189 189 // 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 191 195 logging_debug( "creating new local descriptor entry with local link id " << linkid.toString() ); 192 196 LinkDescriptor linkDescriptor( linkid, local, LinkID::UNSPECIFIED, remote, descriptor, false ); … … 199 203 200 204 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 203 211 transport->sendMessage(&baseMsg); 204 205 212 return linkid; 206 213 } … … 360 367 LinkID remoteLink = spovmsg->getLocalLink(); 361 368 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 } 362 378 363 379 const NetworkLocator* localLocator = dynamic_cast<const NetworkLocator*>(localDescriptor.locator); -
source/ariba/communication/BaseCommunication.h
r3712 r4582 228 228 229 229 LinkDescriptor() : 230 localLink( ),230 localLink(LinkID::UNSPECIFIED), 231 231 localLocator(NULL), 232 remoteLink( ),232 remoteLink(LinkID::UNSPECIFIED), 233 233 remoteLocator(NULL), 234 234 remoteEndpoint(EndpointDescriptor::UNSPECIFIED), -
source/ariba/communication/messages/AribaBaseMsg.cpp
r3690 r4582 74 74 75 75 switch( getType() ){ 76 case LINK_STATE_DATA: return "LINK_STATE_DATA";76 case LINK_STATE_DATA: return "LINK_STATE_DATA"; 77 77 case LINK_STATE_OPEN_REQUEST: return "LINK_STATE_OPEN_REQUEST"; 78 78 case LINK_STATE_OPEN_REPLY: return "LINK_STATE_OPEN_REPLY"; 79 79 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"; 82 82 } 83 83 -
source/ariba/communication/messages/AribaBaseMsg.h
r3690 r4582 71 71 } LINK_STATE; 72 72 73 AribaBaseMsg( const Address* address = NULL, 73 AribaBaseMsg( 74 const Address* address = NULL, 74 75 LINK_STATE _state = LINK_STATE_DATA, 75 76 const LinkID& _localLink = LinkID::UNSPECIFIED,
Note:
See TracChangeset
for help on using the changeset viewer.