OSM_MessageHeader Class Reference

Message Header Definition with portable types. More...

#include <osm_message.h>

List of all members.

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.


Detailed Description

Message Header Definition with portable types.

This has a size of 8 bytes.

Definition at line 75 of file osm_message.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

References len_, and type_.

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.

References len_, and type_.

Referenced by OSM_Message::encode(), and OSM_MA_MsgReceiver::handle_input().


The documentation for this class was generated from the following file:
Generated on Thu Feb 21 18:39:37 2008 for Osmius by  doxygen 1.5.1