Ignore:
Timestamp:
Jul 21, 2009, 1:54:55 PM (15 years ago)
Author:
Christoph Mayer
Message:

begin merge back from relay branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/messages/LinkRequest.h

    r4625 r5151  
    2727        uint32_t nonce;
    2828        const EndpointDescriptor* endpoint;
     29        LinkID remoteLinkId;
     30        NodeID relay;
    2931
    3032public:
    31         LinkRequest();
     33        LinkRequest() {
     34
     35        }
    3236
    3337        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        }
    3542
    3643        virtual ~LinkRequest();
     
    3845        const EndpointDescriptor* getEndpoint() const {
    3946                return endpoint;
     47        }
     48
     49        const LinkID& getRemoteLinkId() const {
     50                return remoteLinkId;
     51        }
     52
     53        const NodeID& getRelay() const {
     54                return relay;
    4055        }
    4156
     
    5368sznBeginDefault( ariba::overlay::LinkRequest, X ) {
    5469        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;
    5673} sznEnd();
    5774
Note: See TracChangeset for help on using the changeset viewer.