#include <osm_message.h>
Public Types | |
| enum | { INVALID_SIZE = -1 } |
Public Member Functions | |
| OSM_MessageHeader (ACE_INT32 length, ACE_INT32 type) | |
| void | decode (void) |
| void | encode (void) |
Public Attributes | |
| ACE_INT32 | len_ |
| Length of the data_ payload, in bytes. | |
| ACE_INT32 | type_ |
| Alarm type 0-INFO, 1-WARNING, 2-CRITICAL, 99-ERROR. | |
This has a size of 8 bytes.
Definition at line 75 of file osm_message.h.
| OSM_MessageHeader::OSM_MessageHeader | ( | ACE_INT32 | length, | |
| ACE_INT32 | type | |||
| ) | [inline] |
Default contructor to initialize the data payload length and message type.
Definition at line 86 of file osm_message.h.
| void OSM_MessageHeader::decode | ( | void | ) | [inline] |
Decode the private attributes from network byte order to host byte order.
Definition at line 95 of file osm_message.h.
Referenced by OSM_MsgHandler::recv_message().
| void OSM_MessageHeader::encode | ( | void | ) | [inline] |
Encode the private attributes from host byte order to network byte order.
Definition at line 104 of file osm_message.h.
Referenced by OSM_Message::encode(), and OSM_MA_MsgReceiver::handle_input().
1.5.1