ACE_Token_Reply Class Reference

Message format for delivering replies from the ACE_Token Server. More...

#include <Token_Request_Reply.h>

Collaboration diagram for ACE_Token_Reply:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Token_Reply (void)
 Default constructor.

ACE_UINT32 length (void) const
 Get the length of the encoded/decoded message.

void length (ACE_UINT32)
 Set the length of the encoded/decoded message.

ACE_UINT32 errnum (void) const
 Get the errno of a reply.

void errnum (ACE_UINT32)
 Set the errno of a reply.

ACE_UINT32 arg (void) const
 Get the arg of a reply.

void arg (ACE_UINT32)
 Set the arg of a reply.

int encode (void *&)
 Encode the message before transfer.

int decode (void)
 Decode a message after reception.

void dump (void) const
 Print out the values of the message for debugging purposes.


Private Attributes

ACE_Token_Reply::Transfer transfer_

Detailed Description

Message format for delivering replies from the ACE_Token Server.

This class is implemented to minimize data copying. In particular, all marshaling is done in situ...

Definition at line 206 of file Token_Request_Reply.h.


Constructor & Destructor Documentation

ACE_Token_Reply::ACE_Token_Reply void   ) 
 

Default constructor.

Definition at line 146 of file Token_Request_Reply.cpp.

References arg(), errnum(), and length().

00147 {
00148   this->arg (0);
00149   this->errnum (0);
00150   this->length (sizeof (Transfer));
00151 }


Member Function Documentation

void ACE_Token_Reply::arg ACE_UINT32   ) 
 

Set the arg of a reply.

ACE_UINT32 ACE_Token_Reply::arg void   )  const
 

Get the arg of a reply.

Referenced by ACE_Token_Reply().

int ACE_Token_Reply::decode void   ) 
 

Decode a message after reception.

Definition at line 167 of file Token_Request_Reply.cpp.

00168 {
00169   return 0;
00170 }

void ACE_Token_Reply::dump void   )  const
 

Print out the values of the message for debugging purposes.

Definition at line 175 of file Token_Request_Reply.cpp.

References ACE_DEBUG, ACE_LIB_TEXT, errnum(), and LM_DEBUG.

00176 {
00177 #if defined (ACE_HAS_DUMP)
00178   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("*******\nlength = %d\nerrnum = %d"),
00179              this->length (), this->errnum ()));
00180   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("arg = %d"), this->arg ()));
00181 #endif /* ACE_HAS_DUMP */
00182 }

int ACE_Token_Reply::encode void *&   ) 
 

Encode the message before transfer.

Definition at line 157 of file Token_Request_Reply.cpp.

References length().

00158 {
00159   buf = (void *) &this->transfer_;
00160   return this->length ();
00161 }

void ACE_Token_Reply::errnum ACE_UINT32   ) 
 

Set the errno of a reply.

ACE_UINT32 ACE_Token_Reply::errnum void   )  const
 

Get the errno of a reply.

Referenced by ACE_Token_Reply(), and dump().

void ACE_Token_Reply::length ACE_UINT32   ) 
 

Set the length of the encoded/decoded message.

ACE_UINT32 ACE_Token_Reply::length void   )  const
 

Get the length of the encoded/decoded message.

Referenced by ACE_Token_Reply(), and encode().


Member Data Documentation

struct ACE_Token_Reply::Transfer ACE_Token_Reply::transfer_ [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:31:49 2006 for ACE by doxygen 1.3.6