odtone::mih::frame
// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/frame.hpp> struct frame { // public static functions static frame * cast(void *, size_t); static const frame * cast(const void *, size_t); // public member functions void version(uint8); void ackreq(bool); void ackrsp(bool); void uir(bool); void m(bool); void fn(uint8); void sid(service::type); void opcode(operation::type); void aid(action::type); void mid(uint16); void tid(uint16); void plength(uint16); uint8 version() const; bool ackreq() const; bool ackrsp() const; bool uir() const; bool m() const; uint8 fn() const; bool rsvd1() const; service::type sid() const; operation::type opcode() const; action::type aid() const; uint16 mid() const; uint8 rsvd2() const; uint16 tid() const; uint16 plength() const; uint8 * payload(); const uint8 * payload() const; size_t length() const; // public data members static const uint8 mask_version; static const uint8 mask_ackreq; static const uint8 mask_ackrsp; static const uint8 mask_uir; static const uint8 mask_m; static const uint8 mask_fn; static const uint8 mask_rsvd1; static const uint8 mask_sid; static const uint8 mask_opcode; static const uint8 mask_aid; static const uint8 mask_rsvd2; static const uint8 mask_tid; uint8 hdr; };
MIH message frame. This class provides access to all fields of the MIH message header.
frame
public static functionsstatic frame * cast(void * buff, size_t len);
Convert a byte buffer to a frame.
Parameters: |
|
||||
Returns: |
The pointer of the returning frame. |
static const frame * cast(const void * buff, size_t len);
Convert a byte buffer to a frame.
Parameters: |
|
||||
Returns: |
The pointer of the returning frame. |
frame
public member functionsvoid version(uint8 v);
Set the MIH Message Version.
Parameters: |
|
void ackreq(bool v);
Set the MIH Message Acknowledge Request Flag.
Parameters: |
|
void ackrsp(bool v);
Set the MIH Message Acknowledge Response Flag.
Parameters: |
|
void uir(bool v);
Set the MIH Message Unauthenticated Information Request Flag.
Parameters: |
|
void m(bool v);
Set the MIH Message More Fragment Flag.
Parameters: |
|
void fn(uint8 v);
Set the MIH Message Fragment Number.
Parameters: |
|
void sid(service::type v);
Set the MIH Message ID Service Identifier.
Parameters: |
|
void opcode(operation::type v);
Set the MIH Message ID Operation Code.
Parameters: |
|
void aid(action::type v);
Set the MIH Message ID Action Identifier.
Parameters: |
|
void mid(uint16 v);
Set the MIH Message ID.
Parameters: |
|
void tid(uint16 v);
Set the MIH Message Transaction ID.
Parameters: |
|
void plength(uint16 v);
Set the message payload length.
Parameters: |
|
uint8 version() const;
Get the MIH Message Version.
Returns: |
The value of the MIH Message Version field. |
bool ackreq() const;
Get the MIH Message Acknowledge Request Flag.
Returns: |
The value of the MIH Message Acknowledge Request Flag. |
bool ackrsp() const;
Get the MIH Message Acknowledge Response Flag.
Returns: |
The value of the MIH Message Acknowledge Response Flag field. |
bool uir() const;
Get the MIH Message Unauthenticated Information Request Flag.
Returns: |
The value of the MIH Message Unauthenticated Information Request Flag. |
bool m() const;
Get the MIH Message More Fragment Flag.
Returns: |
The value of the MIH Message More Fragment Flag. |
uint8 fn() const;
Get the MIH Message Fragment Number.
Returns: |
The value of the MIH Message Fragment Number. |
bool rsvd1() const;
Get the MIH Reserved Bit 1.
Returns: |
The value of the MIH Reserved Bit 1. |
service::type sid() const;
Get the MIH Message ID Service Identifier.
Returns: |
The value of the MIH Message ID Service Identifier. |
operation::type opcode() const;
Get the MIH Message ID Operation Code.
Returns: |
The value of the MIH Message ID Operation Code. |
action::type aid() const;
Get the MIH Message ID Action Identifier.
Returns: |
The value of the MIH Message ID Action Identifier. |
uint16 mid() const;
Get the MIH Message ID.
Returns: |
The value of the MIH Message ID. |
uint8 rsvd2() const;
Get the MIH Reserved Bit 2.
Returns: |
The value of the MIH Reserved Bit 2. |
uint16 tid() const;
Get the MIH Message Transaction ID.
Returns: |
The value of the MIH Message Transaction ID. |
uint16 plength() const;
Get the message payload length.
Returns: |
The message payload length. |
uint8 * payload();
Get the pointer of the message payload.
Returns: |
The pointer of the message payload. |
const uint8 * payload() const;
Get the pointer of the message payload.
Returns: |
The pointer of the message payload. |
size_t length() const;
Get the length of the frame.
Returns: |
The length of the frame. |
frame
public
public data membersstatic const uint8 mask_version;
MIH Message Version mask.
static const uint8 mask_ackreq;
MIH Message Acknowledge Request Flag mask.
static const uint8 mask_ackrsp;
MIH Message Acknowledge Response Flag mask.
static const uint8 mask_uir;
MIH Message Unauthenticated Information Request Flag mask.
static const uint8 mask_m;
MIH Message More Fragment Flag mask.
static const uint8 mask_fn;
MIH Message Fragment Number mask.
static const uint8 mask_rsvd1;
MIH Message Reserved Bit 1 mask.
static const uint8 mask_sid;
MIH Message ID Service Identifier mask.
static const uint8 mask_opcode;
MIH Message ID Operation Code mask.
static const uint8 mask_aid;
Message ID Action Identifier mask.
static const uint8 mask_rsvd2;
MIH Message Reserved Bit 2 mask.
static const uint8 mask_tid;
Message ID Transaction Identifier mask.
uint8 hdr;
Frame bytes.