TAO  2.3.3
Public Member Functions | Private Attributes | List of all members
TAO::First_Request_Guard Class Reference

Auto pointer like class for first_request flag in transport. More...

Collaboration diagram for TAO::First_Request_Guard:
Collaboration graph
[legend]

Public Member Functions

 First_Request_Guard (TAO_Transport &transport)
 
 ~First_Request_Guard (void)
 

Private Attributes

TAO_Transporttransport_
 The transport that we guard. More...
 
bool is_first_
 Original value of first_request from transport. More...
 

Detailed Description

Auto pointer like class for first_request flag in transport.

Since codeset service context is only sent in the first request it might happen that after LocateRequest (which doesn't include service context) no codeset negotiation happens in subsequent calls. In this respect LocateRequest is not the first request and thus First_Request_Guard restores first_request in transport to its original state.

Constructor & Destructor Documentation

TAO::First_Request_Guard::First_Request_Guard ( TAO_Transport transport)
TAO::First_Request_Guard::~First_Request_Guard ( void  )

Member Data Documentation

bool TAO::First_Request_Guard::is_first_
private

Original value of first_request from transport.

TAO_Transport& TAO::First_Request_Guard::transport_
private

The transport that we guard.


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