ACE  6.1.0
Public Member Functions | Static Public Member Functions | Static Protected Attributes | Private Member Functions
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]

List of all members.

Public Member Functions

 ACE_TSS_Connection (void)
 ~ACE_TSS_Connection (void)
ACE_SOCK_Streamget_connection (void)
 Retrieve the thread's connection.
virtual ACE_SOCK_Streammake_TSS_TYPE (void) const
 Factory Method that creates a new SOCK Stream.
 operator ACE_SOCK_Stream * (void)
void dump (void) const
 Dump the state of the class.

Static Public Member Functions

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

Static Protected Attributes

static ACE_INET_Addr server_address_

Private Member Functions

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

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.

Reimplemented from ACE_TSS< ACE_SOCK_Stream >.

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

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines