NAME

ACE_TSS_Connection - Class for providing a connection per thread.

SYNOPSIS

#include <ACE/Remote_Tokens.h>

class ACE_TSS_Connection : public ACE_TSS<ACE_SOCK_Stream> { public: ACE_TSS_Connection (void); ~ACE_TSS_Connection (void); ACE_SOCK_Stream *get_connection (void); virtual ACE_SOCK_Stream *make_TSS_TYPE (void) const; operator ACE_SOCK_Stream *(void); static void set_server_address ( const ACE_INET_Addr &server_address ); void dump (void) const; protected: static ACE_INET_Addr server_address_; private: ACE_TSS_Connection (const ACE_TSS_Connection &); void operator= (const ACE_TSS_Connection &); };

DESCRIPTION

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.

PUBLIC MEMBERS

ACE_TSS_Connection (void);

~ACE_TSS_Connection (void);

ACE_SOCK_Stream *get_connection (void);

virtual ACE_SOCK_Stream *make_TSS_TYPE (void) const;

operator ACE_SOCK_Stream *(void);

static void set_server_address (const ACE_INET_Addr &server_address);

void dump (void) const;

PROTECTED MEMBERS

static ACE_INET_Addr server_address_;

PRIVATE MEMBERS

ACE_TSS_Connection (const ACE_TSS_Connection &);

void operator= (const ACE_TSS_Connection &);

AUTHOR

Douglas C. Schmidt (schmidt@cs.wustl.edu) and Tim Harrison (harrison@cs.wustl.edu)

LIBRARY

ACE