'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class transport_addr

odtone::mih::transport_addr

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/types/address.hpp>


class transport_addr {
public:
  // construct/copy/destruct
  transport_addr(uint16);
  transport_addr(uint16, const void *, size_t);

  // public member functions
  uint16 type() const;
  void type(const uint16);
  const void * get() const;
  size_t length() const;
  template<typename ArchiveT> void serialize(ArchiveT &);
};

Description

TRANSPORT_ADDR data type.

transport_addr public construct/copy/destruct

  1. transport_addr(uint16 type);

    Construct a TRANSPORT_ADDR data type.

    Parameters:

    type

    Transport address type.

  2. transport_addr(uint16 type, const void * raw, size_t len);

    Construct a TRANSPORT_ADDR data type.

    Parameters:

    len

    Size of the transport address raw bytes.

    raw

    Raw bytes of the transport address.

    type

    Transport address type.

transport_addr public member functions

  1. uint16 type() const;

    Get the TRANSPORT_ADDR type.

    Returns:

    The transport address type.

  2. void type(const uint16 type);

    Set the TRANSPORT_ADDR type.

    Parameters:

    type

    The transport address type.

  3. const void * get() const;

    Get the pointer to an array of characters which contains the transport address.

    Returns:

    Pointer to an internal array containing the transport address.

  4. size_t length() const;

    Get the lenght of the transport address string.

    Returns:

    The lenght of the transport address string.

  5. template<typename ArchiveT> void serialize(ArchiveT & ar);

    Serialize/deserialize the TRANSPORT_ADDR data type.

    Parameters:

    ar

    The archive to/from where serialize/deserialize the data type.


PrevUpHomeNext