TAO
2.3.3
|
Auto pointer like class for first_request flag in transport. More...
Public Member Functions | |
First_Request_Guard (TAO_Transport &transport) | |
~First_Request_Guard (void) | |
Private Attributes | |
TAO_Transport & | transport_ |
The transport that we guard. More... | |
bool | is_first_ |
Original value of first_request from transport. More... | |
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.
TAO::First_Request_Guard::First_Request_Guard | ( | TAO_Transport & | transport | ) |
TAO::First_Request_Guard::~First_Request_Guard | ( | void | ) |
|
private |
Original value of first_request from transport.
|
private |
The transport that we guard.