ACE 8.0.0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
ACE_Name_Request Class Reference

Message format for delivering requests to the ACE_Name Server. More...

#include <Name_Request_Reply.h>

Collaboration diagram for ACE_Name_Request:
Collaboration graph
[legend]

Classes

struct  Transfer
 

Public Types

enum  Constants {
  BIND = 01 , REBIND = 02 , RESOLVE = 03 , UNBIND = 04 ,
  LIST_NAMES = 05 , LIST_VALUES = 015 , LIST_TYPES = 025 , LIST_NAME_ENTRIES = 06 ,
  LIST_VALUE_ENTRIES = 016 , LIST_TYPE_ENTRIES = 026 , MAX_ENUM = 11 , MAX_LIST = 3 ,
  OP_TABLE_MASK = 07 , LIST_OP_MASK = 030 , MAX_NAME_LENGTH = MAXPATHLEN + 1
}
 Request message types. More...
 

Public Member Functions

 ACE_Name_Request ()
 Default constructor.
 
 ACE_Name_Request (ACE_INT32 msg_type, const ACE_WCHAR_T name[], const ACE_UINT32 name_length, const ACE_WCHAR_T value[], const ACE_UINT32 value_length, const char type[], const ACE_UINT32 type_length, ACE_Time_Value *timeout=0)
 Create a ACE_Name_Request message.
 
void init ()
 
ACE_UINT32 length () const
 
void length (ACE_UINT32)
 
ACE_INT32 msg_type () const
 
void msg_type (ACE_INT32)
 
ACE_UINT32 block_forever () const
 
void block_forever (ACE_UINT32)
 
ACE_Time_Value timeout () const
 
void timeout (const ACE_Time_Value timeout)
 
const ACE_WCHAR_Tname () const
 
void name (const ACE_WCHAR_T *)
 
const ACE_WCHAR_Tvalue () const
 
void value (const ACE_WCHAR_T *)
 
const chartype () const
 
void type (const char *)
 
ACE_UINT32 name_len () const
 
void name_len (ACE_UINT32)
 
ACE_UINT32 value_len () const
 
void value_len (ACE_UINT32)
 
ACE_UINT32 type_len () const
 
void type_len (ACE_UINT32)
 
int encode (void *&)
 Encode the message before transmission.
 
int decode ()
 Decode message after reception.
 
void dump () const
 Print out the values of the message for debugging purposes.
 

Private Attributes

Transfer transfer_
 Transfer buffer.
 
ACE_WCHAR_Tname_
 Pointer to the beginning of the name in this->data_.
 
ACE_WCHAR_Tvalue_
 Pointer to the beginning of the value in this->data_;.
 
chartype_
 Pointer to the beginning of the type in this->data_;.
 

Detailed Description

Message format for delivering requests to the ACE_Name Server.

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

Member Enumeration Documentation

◆ Constants

Request message types.

Enumerator
BIND 
REBIND 
RESOLVE 
UNBIND 
LIST_NAMES 
LIST_VALUES 
LIST_TYPES 
LIST_NAME_ENTRIES 
LIST_VALUE_ENTRIES 
LIST_TYPE_ENTRIES 
MAX_ENUM 
MAX_LIST 
OP_TABLE_MASK 

Mask for lookup of operation.

LIST_OP_MASK 

Mask for lookup of list_operation.

MAX_NAME_LENGTH 

Class-specific constant values.

Constructor & Destructor Documentation

◆ ACE_Name_Request() [1/2]

ACE_Name_Request::ACE_Name_Request ( )

Default constructor.

◆ ACE_Name_Request() [2/2]

ACE_Name_Request::ACE_Name_Request ( ACE_INT32 msg_type,
const ACE_WCHAR_T name[],
const ACE_UINT32 name_length,
const ACE_WCHAR_T value[],
const ACE_UINT32 value_length,
const char type[],
const ACE_UINT32 type_length,
ACE_Time_Value * timeout = 0 )

Create a ACE_Name_Request message.

Member Function Documentation

◆ block_forever() [1/2]

ACE_UINT32 ACE_Name_Request::block_forever ( ) const

◆ block_forever() [2/2]

void ACE_Name_Request::block_forever ( ACE_UINT32 bs)

◆ decode()

int ACE_Name_Request::decode ( )

Decode message after reception.

◆ dump()

void ACE_Name_Request::dump ( ) const

Print out the values of the message for debugging purposes.

◆ encode()

int ACE_Name_Request::encode ( void *& buf)

Encode the message before transmission.

◆ init()

void ACE_Name_Request::init ( )

Initialize length_ in order to ensure correct byte ordering before a request is sent.

◆ length() [1/2]

ACE_UINT32 ACE_Name_Request::length ( ) const

◆ length() [2/2]

void ACE_Name_Request::length ( ACE_UINT32 l)

◆ msg_type() [1/2]

ACE_INT32 ACE_Name_Request::msg_type ( ) const

◆ msg_type() [2/2]

void ACE_Name_Request::msg_type ( ACE_INT32 t)

◆ name() [1/2]

const ACE_WCHAR_T * ACE_Name_Request::name ( ) const

◆ name() [2/2]

void ACE_Name_Request::name ( const ACE_WCHAR_T * t)

◆ name_len() [1/2]

ACE_UINT32 ACE_Name_Request::name_len ( ) const

◆ name_len() [2/2]

void ACE_Name_Request::name_len ( ACE_UINT32 t)

◆ timeout() [1/2]

ACE_Time_Value ACE_Name_Request::timeout ( ) const

◆ timeout() [2/2]

void ACE_Name_Request::timeout ( const ACE_Time_Value timeout)

◆ type() [1/2]

const char * ACE_Name_Request::type ( ) const

◆ type() [2/2]

void ACE_Name_Request::type ( const char * c)

◆ type_len() [1/2]

ACE_UINT32 ACE_Name_Request::type_len ( ) const

◆ type_len() [2/2]

void ACE_Name_Request::type_len ( ACE_UINT32 t)

◆ value() [1/2]

const ACE_WCHAR_T * ACE_Name_Request::value ( ) const

◆ value() [2/2]

void ACE_Name_Request::value ( const ACE_WCHAR_T * c)

◆ value_len() [1/2]

ACE_UINT32 ACE_Name_Request::value_len ( ) const

◆ value_len() [2/2]

void ACE_Name_Request::value_len ( ACE_UINT32 t)

Member Data Documentation

◆ name_

ACE_WCHAR_T* ACE_Name_Request::name_
private

Pointer to the beginning of the name in this->data_.

◆ transfer_

Transfer ACE_Name_Request::transfer_
private

Transfer buffer.

◆ type_

char* ACE_Name_Request::type_
private

Pointer to the beginning of the type in this->data_;.

◆ value_

ACE_WCHAR_T* ACE_Name_Request::value_
private

Pointer to the beginning of the value in this->data_;.


The documentation for this class was generated from the following files: