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/utility/serialization/DataStream.hpp

    r4619 r5284  
    4444#include <boost/type_traits/make_unsigned.hpp>
    4545
     46#include <cassert>
    4647#include <iostream>
    4748#include <vector>
     
    331332                bits.setLength(index);
    332333                return bits;
     334        }
     335
     336        finline uint8_t* bytes( size_t length ) {
     337                assert((index%bits.word_width)==0);
     338                if (!isMeasure()) {
     339                        bits.ensureLength( index + length * 8);
     340                        uint8_t* buffer = (uint8_t*)bits.getBuffer()+(index/bits.word_width);
     341                        index += length*8;
     342                        return buffer;
     343                } else {
     344                        index += length*8;
     345                        return NULL;
     346                }
    333347        }
    334348
Note: See TracChangeset for help on using the changeset viewer.