odtone::mih::transport_addr
// 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 &); };
TRANSPORT_ADDR data type.
transport_addr
public
construct/copy/destructtransport_addr(uint16 type);
Construct a TRANSPORT_ADDR data type.
Parameters: |
|
transport_addr(uint16 type, const void * raw, size_t len);
Construct a TRANSPORT_ADDR data type.
Parameters: |
|
transport_addr
public member functionsuint16 type() const;
Get the TRANSPORT_ADDR type.
Returns: |
The transport address type. |
void type(const uint16 type);
Set the TRANSPORT_ADDR type.
Parameters: |
|
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. |
size_t length() const;
Get the lenght of the transport address string.
Returns: |
The lenght of the transport address string. |
template<typename ArchiveT> void serialize(ArchiveT & ar);
Serialize/deserialize the TRANSPORT_ADDR data type.
Parameters: |
|