Changeset 9684 for source/ariba/communication/messages
- Timestamp:
- Mar 22, 2011, 4:05:57 PM (14 years ago)
- Location:
- source/ariba/communication/messages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/messages/AribaBaseMsg.cpp
r6919 r9684 44 44 vsznDefault(AribaBaseMsg); 45 45 46 AribaBaseMsg::AribaBaseMsg( type_ _type, 47 const LinkID& localLink, const LinkID& remoteLink ) : 48 type((uint8_t)_type), 49 localLink(localLink),remoteLink(remoteLink) { 46 AribaBaseMsg::AribaBaseMsg( type_ _type, LinkID link ) : 47 type((uint8_t)_type), link(link){ 50 48 } 51 49 -
source/ariba/communication/messages/AribaBaseMsg.h
r5284 r9684 41 41 42 42 #include <string> 43 #include <boost/cstdint.hpp> 43 #include <stdint.h> 44 44 45 #include "ariba/utility/messages.h" 45 46 #include "ariba/utility/serialization.h" 47 46 48 #include "ariba/utility/types/LinkID.h" 47 49 #include "ariba/utility/types/Address.h" … … 72 74 }; 73 75 74 AribaBaseMsg( type_ type = typeData, 75 const LinkID& localLink = LinkID::UNSPECIFIED, 76 const LinkID& remoteLink = LinkID::UNSPECIFIED ); 77 76 AribaBaseMsg( type_ type = typeData, LinkID link = LinkID::UNSPECIFIED ); 78 77 virtual ~AribaBaseMsg(); 79 78 … … 84 83 } 85 84 86 const LinkID& getLocalLink() const { 87 return localLink; 88 } 89 90 const LinkID& getRemoteLink() const { 91 return remoteLink; 85 const LinkID& getLink() const { 86 return link; 92 87 } 93 88 … … 101 96 102 97 private: 103 uint8_t type; // the link message type 98 // link message type 99 uint8_t type; 104 100 105 // remote and local link ids 106 LinkID localLink; // the local link id 107 LinkID remoteLink; // the remote link id 101 // link identifier 102 LinkID link; 108 103 109 // remote and local endpoint descriptors 104 // remote and local endpoint descriptors (link reply/request only) 110 105 EndpointDescriptor localDescriptor; 111 106 EndpointDescriptor remoteDescriptor; … … 115 110 116 111 sznBeginDefault( ariba::communication::AribaBaseMsg, X ) { 117 X && type && &localLink && &remoteLink;118 if (type == typeLinkReply || type == typeLinkRequest) 112 X && type && link; 113 if (type == typeLinkReply || type == typeLinkRequest) { 119 114 X && localDescriptor && remoteDescriptor; 115 } 120 116 X && Payload(); 121 117 } sznEnd();
Note:
See TracChangeset
for help on using the changeset viewer.