Changeset 5151 for source/ariba/overlay/messages/LinkRequest.h
- Timestamp:
- Jul 21, 2009, 1:54:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/messages/LinkRequest.h
r4625 r5151 27 27 uint32_t nonce; 28 28 const EndpointDescriptor* endpoint; 29 LinkID remoteLinkId; 30 NodeID relay; 29 31 30 32 public: 31 LinkRequest(); 33 LinkRequest() { 34 35 } 32 36 33 37 LinkRequest( uint32_t nonce, const EndpointDescriptor* endpoint, 34 bool reply = false ); 38 bool reply = false, const LinkID& remoteLinkId = LinkID::UNSPECIFIED, 39 const NodeID& relay = NodeID::UNSPECIFIED ) : 40 flags(reply&1), nonce(nonce), endpoint(endpoint), remoteLinkId(remoteLinkId), relay(relay) { 41 } 35 42 36 43 virtual ~LinkRequest(); … … 38 45 const EndpointDescriptor* getEndpoint() const { 39 46 return endpoint; 47 } 48 49 const LinkID& getRemoteLinkId() const { 50 return remoteLinkId; 51 } 52 53 const NodeID& getRelay() const { 54 return relay; 40 55 } 41 56 … … 53 68 sznBeginDefault( ariba::overlay::LinkRequest, X ) { 54 69 if (X.isDeserializer()) endpoint = new EndpointDescriptor(); 55 X && flags && nonce && reinterpret_cast<VSerializeable*>(const_cast<EndpointDescriptor*>(endpoint)); 70 X && flags && nonce; 71 X && const_cast<EndpointDescriptor*>(endpoint); 72 X && &relay && &remoteLinkId; 56 73 } sznEnd(); 57 74
Note:
See TracChangeset
for help on using the changeset viewer.