TAO
2.3.3
|
Generic definitions for Message States. More...
#include <GIOP_Message_State.h>
Public Member Functions | |
TAO_GIOP_Message_State (void) | |
Constructor. More... | |
int | parse_message_header (ACE_Message_Block &incoming) |
CORBA::ULong | message_size (void) const |
Return the message size. More... | |
CORBA::ULong | payload_size (void) const |
Return the message size. More... | |
CORBA::Octet | byte_order (void) const |
Return the byte order information. More... | |
GIOP::MsgType | message_type (void) const |
Return the message type. More... | |
CORBA::Boolean | more_fragments (void) const |
Return the more fragments. More... | |
void | more_fragments (CORBA::Boolean fragment) |
TAO_GIOP_Message_Version const & | giop_version (void) const |
Get the GIOP version. More... | |
CORBA::Boolean | compressed (void) const |
Return the compressed information. More... | |
Private Member Functions | |
int | parse_message_header_i (ACE_Message_Block &incoming) |
Parse the message header. More... | |
int | parse_magic_bytes (char *buf) |
int | get_version_info (char *buf) |
int | get_byte_order_info (char *buf) |
void | get_payload_size (char *buf) |
Gets the size of the payload and set the size in the <state> More... | |
CORBA::ULong | read_ulong (const char *buf) const |
Private Attributes | |
TAO_GIOP_Message_Version | giop_version_ |
GIOP version information.. More... | |
CORBA::Octet | byte_order_ |
0 = big, 1 = little More... | |
GIOP::MsgType | message_type_ |
MsgType above. More... | |
CORBA::ULong | payload_size_ |
In byte_order! More... | |
CORBA::Boolean | more_fragments_ |
CORBA::Boolean | compressed_ |
Compressed. More... | |
Generic definitions for Message States.
This helps to establish the state of the incoming messages.
TAO_GIOP_Message_State::TAO_GIOP_Message_State | ( | void | ) |
Constructor.
CORBA::Octet TAO_GIOP_Message_State::byte_order | ( | void | ) | const |
Return the byte order information.
CORBA::Boolean TAO_GIOP_Message_State::compressed | ( | void | ) | const |
Return the compressed information.
|
private |
Extracts the byte order information from the incoming stream. Performs a check for whether the byte order information right and sets the information in the <state>
|
private |
Gets the size of the payload and set the size in the <state>
|
private |
Extracts the version information from the incoming stream. Performs a check for whether the version information is right and sets the information in the <state>
TAO_GIOP_Message_Version const & TAO_GIOP_Message_State::giop_version | ( | void | ) | const |
Get the GIOP version.
CORBA::ULong TAO_GIOP_Message_State::message_size | ( | void | ) | const |
Return the message size.
GIOP::MsgType TAO_GIOP_Message_State::message_type | ( | void | ) | const |
Return the message type.
CORBA::Boolean TAO_GIOP_Message_State::more_fragments | ( | void | ) | const |
Return the more fragments.
void TAO_GIOP_Message_State::more_fragments | ( | CORBA::Boolean | fragment | ) |
|
private |
Checks for the magic word 'GIOP' in the start of the incoming stream
int TAO_GIOP_Message_State::parse_message_header | ( | ACE_Message_Block & | incoming | ) |
|
private |
Parse the message header.
CORBA::ULong TAO_GIOP_Message_State::payload_size | ( | void | ) | const |
Return the message size.
|
private |
Read the unsigned long from the buffer. The buf should just point to the next 4 bytes data that represent the ULong
|
private |
0 = big, 1 = little
|
private |
Compressed.
|
private |
GIOP version information..
|
private |
MsgType above.
|
private |
(Requests and Replys) A value of zero indicates that this message does not have any fragments. A value of non-zero indicates that it does have fragments.
|
private |
In byte_order!