#include <Remote_Tokens.h>
Inheritance diagram for ACE_TSS_Connection:
Public Member Functions | |
ACE_TSS_Connection (void) | |
~ACE_TSS_Connection (void) | |
ACE_SOCK_Stream * | get_connection (void) |
Retrieve the thread's connection. | |
virtual ACE_SOCK_Stream * | make_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 | |
void | set_server_address (const ACE_INET_Addr &server_address) |
Set the server address. | |
Static Protected Attributes | |
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 &) |
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.
Definition at line 278 of file Remote_Tokens.h.
|
Definition at line 43 of file Remote_Tokens.cpp. References ACE_TRACE.
00044 { 00045 ACE_TRACE ("ACE_TSS_Connection::ACE_TSS_Connection"); 00046 } |
|
Definition at line 48 of file Remote_Tokens.cpp. References ACE_TRACE.
00049 { 00050 ACE_TRACE ("ACE_TSS_Connection::~ACE_TSS_Connection"); 00051 } |
|
Private: should not be used.
|
|
Dump the state of the class.
Reimplemented from ACE_TSS< ACE_SOCK_Stream >. Definition at line 88 of file Remote_Tokens.cpp. References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_TEXT, ACE_TRACE, ACE_TSS< TYPE >::dump(), ACE_INET_Addr::dump(), LM_DEBUG, and server_address_.
00089 { 00090 #if defined (ACE_HAS_DUMP) 00091 ACE_TRACE ("ACE_TSS_Connection::dump"); 00092 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); 00093 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("ACE_TSS_Connection::dump:\n"))); 00094 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("server_address_\n"))); 00095 server_address_.dump (); 00096 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("base:\n"))); 00097 ACE_TSS<ACE_SOCK_Stream>::dump (); 00098 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); 00099 #endif /* ACE_HAS_DUMP */ 00100 } |
|
Retrieve the thread's connection.
Definition at line 54 of file Remote_Tokens.cpp. References ACE_TSS< TYPE >::operator->(). Referenced by operator ACE_SOCK_Stream *().
00055 { 00056 return ACE_TSS<ACE_SOCK_Stream>::operator-> (); 00057 } |
|
Factory Method that creates a new SOCK Stream.
Reimplemented from ACE_TSS< ACE_SOCK_Stream >. Definition at line 60 of file Remote_Tokens.cpp. References ACE_DEBUG, ACE_NEW_RETURN, ACE_TEXT, ACE_TRACE, ACE_SOCK_Connector::connect(), ECONNREFUSED, LM_DEBUG, and server_address_.
00061 { 00062 ACE_TRACE ("ACE_TSS_Connection::make_TSS_TYPE"); 00063 00064 ACE_SOCK_Connector connector; 00065 ACE_SOCK_Stream *stream = 0; 00066 00067 ACE_NEW_RETURN (stream, 00068 ACE_SOCK_Stream, 00069 0); 00070 00071 if (connector.connect (*stream, server_address_) == -1) 00072 { 00073 delete stream; 00074 errno = ECONNREFUSED; 00075 return 0; 00076 } 00077 00078 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("ACE_TSS_Connection new connection\n"))); 00079 return stream; 00080 } |
|
Inheritence and operator overloading don't mix. Redefine this from ACE_TSS so that we can use it. Definition at line 82 of file Remote_Tokens.cpp. References get_connection().
00083 { 00084 return this->get_connection (); 00085 } |
|
|
|
Set the server address.
Definition at line 36 of file Remote_Tokens.cpp. References ACE_TRACE, and server_address_.
00037 { 00038 ACE_TRACE ("ACE_TSS_Connection::set_server_address"); 00039 server_address_ = server_address; 00040 } |
|
The address of the Token Server used by all instances of Token_Proxy. Definition at line 31 of file Remote_Tokens.cpp. Referenced by dump(), make_TSS_TYPE(), and set_server_address(). |