ACE  6.3.3
Public Member Functions | Static Public Member Functions | Static Protected Attributes | Private Member Functions | List of all members
ACE_TSS_Connection Class Reference

Class for providing a connection per thread. More...

#include <Remote_Tokens.h>

Inheritance diagram for ACE_TSS_Connection:
Inheritance graph
[legend]
Collaboration diagram for ACE_TSS_Connection:
Collaboration graph
[legend]

Public Member Functions

 ACE_TSS_Connection (void)
 
 ~ACE_TSS_Connection (void)
 
ACE_SOCK_Streamget_connection (void)
 Retrieve the thread's connection. More...
 
virtual ACE_SOCK_Streammake_TSS_TYPE (void) const
 Factory Method that creates a new SOCK Stream. More...
 
 operator ACE_SOCK_Stream * (void)
 
void dump (void) const
 Dump the state of the class. More...
 
- Public Member Functions inherited from ACE_TSS< ACE_SOCK_Stream >
 ACE_TSS (ACE_SOCK_Stream *ts_obj=0)
 
virtual ~ACE_TSS (void)
 
ACE_SOCK_Streamts_object (ACE_SOCK_Stream *new_ts_obj)
 
void dump (void) const
 Dump the state of an object. More...
 
ACE_SOCK_Streamts_object (void) const
 
ACE_SOCK_Streamoperator-> () const
 
 operator ACE_SOCK_Stream * (void) const
 

Static Public Member Functions

static void set_server_address (const ACE_INET_Addr &server_address)
 Set the server address. More...
 

Static Protected Attributes

static ACE_INET_Addr server_address_
 

Private Member Functions

 ACE_TSS_Connection (const ACE_TSS_Connection &)
 Private: should not be used. More...
 
void operator= (const ACE_TSS_Connection &)
 

Additional Inherited Members

- Protected Member Functions inherited from ACE_TSS< ACE_SOCK_Stream >
ACE_SOCK_Streamts_get (void) const
 
int ts_init (void)
 
- Protected Attributes inherited from ACE_TSS< ACE_SOCK_Stream >
ACE_SOCK_Streamtype_
 This implementation only works for non-threading systems... More...
 

Detailed Description

Class for providing a connection per thread.

ACE_TSS_Connection provides a single access point for all threads to access thread-specific connections. This prevents resource-sharing problems such as thread serialization.

Constructor & Destructor Documentation

ACE_TSS_Connection::ACE_TSS_Connection ( void  )
ACE_TSS_Connection::~ACE_TSS_Connection ( void  )
ACE_TSS_Connection::ACE_TSS_Connection ( const ACE_TSS_Connection )
private

Private: should not be used.

Member Function Documentation

void ACE_TSS_Connection::dump ( void  ) const

Dump the state of the class.

ACE_SOCK_Stream * ACE_TSS_Connection::get_connection ( void  )

Retrieve the thread's connection.

ACE_SOCK_Stream * ACE_TSS_Connection::make_TSS_TYPE ( void  ) const
virtual

Factory Method that creates a new SOCK Stream.

Reimplemented from ACE_TSS< ACE_SOCK_Stream >.

ACE_TSS_Connection::operator ACE_SOCK_Stream * ( void  )

Inheritance and operator overloading don't mix. Redefine this from ACE_TSS so that we can use it.

void ACE_TSS_Connection::operator= ( const ACE_TSS_Connection )
private
void ACE_TSS_Connection::set_server_address ( const ACE_INET_Addr server_address)
static

Set the server address.

Member Data Documentation

ACE_INET_Addr ACE_TSS_Connection::server_address_
staticprotected

The address of the Token Server used by all instances of Token_Proxy.


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