Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 Methods

 ACE_Token_Reply (void)
 Default constructor. More...

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

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

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

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

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

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

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

int decode (void)
 Decode a message after reception. More...

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


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 204 of file Token_Request_Reply.h.


Constructor & Destructor Documentation

ACE_Token_Reply::ACE_Token_Reply void   
 

Default constructor.

Definition at line 143 of file Token_Request_Reply.cpp.

00144 {
00145   this->arg (0);
00146   this->errnum (0);
00147   this->length (sizeof (Transfer));
00148 }


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.

int ACE_Token_Reply::decode void   
 

Decode a message after reception.

Definition at line 164 of file Token_Request_Reply.cpp.

Referenced by ACE_Remote_Token_Proxy::request_reply.

00165 {
00166   return 0;
00167 }

void ACE_Token_Reply::dump void    const
 

Print out the values of the message for debugging purposes.

Definition at line 172 of file Token_Request_Reply.cpp.

References ACE_DEBUG, ACE_LIB_TEXT, errnum, and LM_DEBUG.

00173 {
00174   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("*******\nlength = %d\nerrnum = %d"),
00175              this->length (), this->errnum ()));
00176   ACE_DEBUG ((LM_DEBUG,  ACE_LIB_TEXT ("arg = %d"), this->arg ()));
00177 }

int ACE_Token_Reply::encode void *&   
 

Encode the message before transfer.

Definition at line 154 of file Token_Request_Reply.cpp.

References length, and transfer_.

00155 {
00156   buf = (void *) &this->transfer_;
00157   return this->length ();
00158 }

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 dump, and ACE_Remote_Token_Proxy::request_reply.

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 encode.


Member Data Documentation

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

Referenced by encode.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:58:31 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002