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

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 &)=delete
 
void operator= (const ACE_TSS_Connection &)=delete
 

Additional Inherited Members

- Public Attributes inherited from ACE_TSS< ACE_SOCK_Stream >
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 
- Protected Member Functions inherited from ACE_TSS< ACE_SOCK_Stream >
ACE_SOCK_Streamts_get () const
 
int ts_init ()
 
- Protected Attributes inherited from ACE_TSS< ACE_SOCK_Stream >
ACE_SOCK_Streamtype_
 This implementation only works for non-threading systems...
 

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() [1/2]

ACE_TSS_Connection::ACE_TSS_Connection ( )

◆ ~ACE_TSS_Connection()

ACE_TSS_Connection::~ACE_TSS_Connection ( )

◆ ACE_TSS_Connection() [2/2]

ACE_TSS_Connection::ACE_TSS_Connection ( const ACE_TSS_Connection & )
privatedelete

Member Function Documentation

◆ dump()

void ACE_TSS_Connection::dump ( ) const

Dump the state of the class.

◆ get_connection()

ACE_SOCK_Stream * ACE_TSS_Connection::get_connection ( )

Retrieve the thread's connection.

◆ make_TSS_TYPE()

ACE_SOCK_Stream * ACE_TSS_Connection::make_TSS_TYPE ( ) const
virtual

Factory Method that creates a new SOCK Stream.

Reimplemented from ACE_TSS< ACE_SOCK_Stream >.

◆ operator ACE_SOCK_Stream *()

ACE_TSS_Connection::operator ACE_SOCK_Stream * ( )

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

◆ operator=()

void ACE_TSS_Connection::operator= ( const ACE_TSS_Connection & )
privatedelete

◆ set_server_address()

void ACE_TSS_Connection::set_server_address ( const ACE_INET_Addr & server_address)
static

Set the server address.

Member Data Documentation

◆ server_address_

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: