Ignore:
Timestamp:
Mar 11, 2010, 9:28:24 AM (14 years ago)
Author:
Christoph Mayer
Message:

-branch merge back

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/EndpointDescriptor.h

    r6919 r7744  
    4343#include <set>
    4444#include "ariba/utility/serialization.h"
     45#include "ariba/utility/types/PeerID.h"
    4546#include "ariba/utility/addressing/endpoint_set.hpp"
    4647
     
    5152using namespace std;
    5253using namespace ariba::addressing;
     54using ariba::utility::PeerID;
    5355
    5456class EndpointDescriptor: public VSerializeable { VSERIALIZEABLE
     
    120122        }
    121123
     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        }
    122134private:
    123135        endpoint_set endpoints;
     136        PeerID peerId;
    124137};
    125138
     
    127140
    128141sznBeginDefault( ariba::communication::EndpointDescriptor, X ){
    129         // serialize endpoints
     142
     143        // serialize peer id
     144        X && &peerId;
     145
     146        // serialize end-points
    130147        uint16_t len = endpoints.to_bytes_size();
    131148        X && len;
Note: See TracChangeset for help on using the changeset viewer.