Message format for delivering requests to the ACE_Token Server.
More...
#include <Token_Request_Reply.h>
Detailed Description
Message format for delivering requests to the ACE_Token Server.
This class is implemented to minimize data copying. In particular, all marshaling is done in situ...
Member Enumeration Documentation
Operation types.
- Enumerator:
ACQUIRE |
Acquire the token.
|
RELEASE |
Release the token.
|
RENEW |
Renew the token.
|
REMOVE |
Remove the token.
|
TRY_ACQUIRE |
|
Constructor & Destructor Documentation
ACE_Token_Request::ACE_Token_Request |
( |
void |
| ) |
|
ACE_Token_Request::ACE_Token_Request |
( |
int |
token_type, |
|
|
int |
proxy_type, |
|
|
ACE_UINT32 |
operation, |
|
|
const ACE_TCHAR |
token_name[], |
|
|
const ACE_TCHAR |
client_id[], |
|
|
const ACE_Synch_Options & |
options |
|
) |
| |
- Parameters
-
token_type | MUTEX, RWLOCK |
proxy_type | MUTEX, RLOCK, WLOCK (acquires mean different things) |
operation | method |
token_name | |
client_id | |
options | We check USE_TIMEOUT and use the arg. |
Member Function Documentation
ACE_TCHAR * ACE_Token_Request::client_id |
( |
void |
| ) |
const |
|
inline |
int ACE_Token_Request::decode |
( |
void |
| ) |
|
Decode message after reception. This must be called to set the internal options.
void ACE_Token_Request::dump |
( |
void |
| ) |
const |
Print out the values of the message for debugging purposes.
int ACE_Token_Request::encode |
( |
void *& |
buf | ) |
|
Encode the message before transmission.
ACE_UINT32 ACE_Token_Request::length |
( |
void |
| ) |
const |
|
inline |
Get the length of the encoded/decoded message.
void ACE_Token_Request::length |
( |
ACE_UINT32 |
l | ) |
|
|
inline |
Set the length of the encoded/decoded message.
ACE_UINT32 ACE_Token_Request::notify |
( |
void |
| ) |
const |
|
inline |
Get notify. These should be used when acquire is the operation type.
void ACE_Token_Request::notify |
( |
ACE_UINT32 |
rq | ) |
|
|
inline |
Set notify. These should be used when acquire is the operation type.
ACE_UINT32 ACE_Token_Request::operation_type |
( |
void |
| ) |
const |
|
inline |
Get the type of the operation.
void ACE_Token_Request::operation_type |
( |
ACE_UINT32 |
t | ) |
|
|
inline |
Set the type of the operation.
int ACE_Token_Request::proxy_type |
( |
void |
| ) |
const |
|
inline |
void ACE_Token_Request::proxy_type |
( |
int |
proxy_type | ) |
|
|
inline |
ACE_UINT32 ACE_Token_Request::requeue_position |
( |
void |
| ) |
const |
|
inline |
Get the requeue position. These should be used when renew is the operation type.
void ACE_Token_Request::requeue_position |
( |
ACE_UINT32 |
rq | ) |
|
|
inline |
Set the requeue position. These should be used when renew is the operation type.
ACE_TCHAR * ACE_Token_Request::token_name |
( |
void |
| ) |
const |
|
inline |
void ACE_Token_Request::token_name |
( |
const ACE_TCHAR * |
token_name, |
|
|
const ACE_TCHAR * |
client_id |
|
) |
| |
|
inline |
int ACE_Token_Request::token_type |
( |
void |
| ) |
const |
|
inline |
void ACE_Token_Request::token_type |
( |
int |
token_type | ) |
|
|
inline |
Member Data Documentation
Pointer to the beginning of the client id in this->data_;.
Holds arg, sec, usec, etc.
Pointer to the beginning of the token name in this->data_.
The documentation for this class was generated from the following files: