Changeset 7744 for source/ariba/communication/EndpointDescriptor.h
- Timestamp:
- Mar 11, 2010, 9:28:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/EndpointDescriptor.h
r6919 r7744 43 43 #include <set> 44 44 #include "ariba/utility/serialization.h" 45 #include "ariba/utility/types/PeerID.h" 45 46 #include "ariba/utility/addressing/endpoint_set.hpp" 46 47 … … 51 52 using namespace std; 52 53 using namespace ariba::addressing; 54 using ariba::utility::PeerID; 53 55 54 56 class EndpointDescriptor: public VSerializeable { VSERIALIZEABLE … … 120 122 } 121 123 124 /// returns a reference to the peer id 125 PeerID& getPeerId() { 126 return peerId; 127 } 128 129 130 /// returns a reference to the constant peer id 131 const PeerID& getPeerId() const { 132 return peerId; 133 } 122 134 private: 123 135 endpoint_set endpoints; 136 PeerID peerId; 124 137 }; 125 138 … … 127 140 128 141 sznBeginDefault( ariba::communication::EndpointDescriptor, X ){ 129 // serialize endpoints 142 143 // serialize peer id 144 X && &peerId; 145 146 // serialize end-points 130 147 uint16_t len = endpoints.to_bytes_size(); 131 148 X && len;
Note:
See TracChangeset
for help on using the changeset viewer.