Ignore:
Timestamp:
Jul 24, 2009, 3:23:11 PM (15 years ago)
Author:
mies
Message:

+ added new transport modules and adapted ariba to them
+ exchange endpoint descriptors an link establishment
+ clean up of base communication
+ link establishment with in the presence of multiple endpoints
+ local discovery for ipv6, ipv4 and bluetooth mac addresses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/messages/AribaBaseMsg.cpp

    r4582 r5284  
    4444vsznDefault(AribaBaseMsg);
    4545
    46 AribaBaseMsg::AribaBaseMsg(
    47         const Address* address,
    48         LINK_STATE _state,
    49         const LinkID& _localLink,
    50         const LinkID& _remoteLink )
    51                 : state( (uint8_t)_state ),
    52                   localLink( _localLink ),
    53                   remoteLink( _remoteLink ){
    54 
    55         Message::setDestinationAddress( address );
     46AribaBaseMsg::AribaBaseMsg( type_ _type,
     47        const LinkID& localLink, const LinkID& remoteLink ) :
     48        type((uint8_t)_type),
     49        localLink(localLink),remoteLink(remoteLink) {
    5650}
    5751
    58 AribaBaseMsg::~AribaBaseMsg(){
     52AribaBaseMsg::~AribaBaseMsg() {
    5953}
    6054
    61 const AribaBaseMsg::LINK_STATE AribaBaseMsg::getType(){
    62         return (LINK_STATE)state;
    63 }
    64 
    65 const LinkID& AribaBaseMsg::getLocalLink(){
    66         return localLink;
    67 }
    68 
    69 const LinkID& AribaBaseMsg::getRemoteLink(){
    70         return remoteLink;
    71 }
    72 
    73 const string AribaBaseMsg::getTypeString(){
    74 
    75         switch( getType() ){
    76                 case LINK_STATE_DATA:                   return "LINK_STATE_DATA";
    77                 case LINK_STATE_OPEN_REQUEST:   return "LINK_STATE_OPEN_REQUEST";
    78                 case LINK_STATE_OPEN_REPLY:     return "LINK_STATE_OPEN_REPLY";
    79                 case LINK_STATE_CLOSE_REQUEST:  return "LINK_STATE_CLOSE_REQUEST";
    80                 case LINK_STATE_UPDATE:                 return "LINK_STATE_UPDATE";
    81                 default:                                                "unknown";
     55const string AribaBaseMsg::getTypeString() const {
     56        switch (getType()) {
     57                case typeData:
     58                        return "typeData";
     59                case typeLinkRequest:
     60                        return "typeLinkRequest";
     61                case typeLinkReply:
     62                        return "typeLinkReply";
     63                case typeLinkClose:
     64                        return "typeLinkClose";
     65                case typeLinkUpdate:
     66                        return "typeLinkUpdate";
     67                default:
     68                        "unknown";
    8269        }
    83 
    8470        return "unknown";
    8571}
Note: See TracChangeset for help on using the changeset viewer.