AWS SDK for C++  1.9.109
AWS SDK for C++
Classes | Public Member Functions | Protected Member Functions | Friends | List of all members
Aws::Http::WinConnectionPoolMgr Class Referenceabstract

#include <WinConnectionPoolMgr.h>

+ Inheritance diagram for Aws::Http::WinConnectionPoolMgr:

Classes

class  HostConnectionContainer
 

Public Member Functions

 WinConnectionPoolMgr (void *iOpenHandle, unsigned maxConnectionsPerHost, long requestTimeout, long connectTimeout)
 
 WinConnectionPoolMgr (void *iOpenHandle, unsigned maxConnectionsPerHost, long requestTimeout, long connectTimeout, bool enableTcpKeepAlive, unsigned long tcpKeepAliveIntervalMs)
 
virtual ~WinConnectionPoolMgr ()
 
void * AcquireConnectionForHost (const Aws::String &host, uint16_t port)
 
void ReleaseConnectionForHost (const Aws::String &host, unsigned port, void *connection)
 
virtual const char * GetLogTag () const
 
virtual void DoCloseHandle (void *handle) const =0
 

Protected Member Functions

void * GetOpenHandle () const
 
long GetRequestTimeout () const
 
long GetConnectTimeout () const
 
bool GetEnableTcpKeepAlive () const
 
unsigned long GetTcpKeepAliveInterval () const
 
void DoCleanup ()
 

Friends

class WinHttpSyncHttpClient
 

Detailed Description

Connection pool manager for windows apis maintains open connections for a given hostname and port.

Definition at line 26 of file WinConnectionPoolMgr.h.

Constructor & Destructor Documentation

◆ WinConnectionPoolMgr() [1/2]

Aws::Http::WinConnectionPoolMgr::WinConnectionPoolMgr ( void *  iOpenHandle,
unsigned  maxConnectionsPerHost,
long  requestTimeout,
long  connectTimeout 
)

◆ WinConnectionPoolMgr() [2/2]

Aws::Http::WinConnectionPoolMgr::WinConnectionPoolMgr ( void *  iOpenHandle,
unsigned  maxConnectionsPerHost,
long  requestTimeout,
long  connectTimeout,
bool  enableTcpKeepAlive,
unsigned long  tcpKeepAliveIntervalMs 
)

◆ ~WinConnectionPoolMgr()

virtual Aws::Http::WinConnectionPoolMgr::~WinConnectionPoolMgr ( )
virtual

Member Function Documentation

◆ AcquireConnectionForHost()

void* Aws::Http::WinConnectionPoolMgr::AcquireConnectionForHost ( const Aws::String host,
uint16_t  port 
)

◆ DoCleanup()

void Aws::Http::WinConnectionPoolMgr::DoCleanup ( )
protected

Cleans up all open resources.

◆ DoCloseHandle()

virtual void Aws::Http::WinConnectionPoolMgr::DoCloseHandle ( void *  handle) const
pure virtual

Gives an opportunity of implementations to make their api calls to cleanup a handle.

◆ GetConnectTimeout()

long Aws::Http::WinConnectionPoolMgr::GetConnectTimeout ( ) const
inlineprotected

Gets the configured connection timeout for this connection pool.

Definition at line 86 of file WinConnectionPoolMgr.h.

◆ GetEnableTcpKeepAlive()

bool Aws::Http::WinConnectionPoolMgr::GetEnableTcpKeepAlive ( ) const
inlineprotected

Whether sending TCP keep-alive packet for this connection pool.

Definition at line 90 of file WinConnectionPoolMgr.h.

◆ GetLogTag()

virtual const char* Aws::Http::WinConnectionPoolMgr::GetLogTag ( ) const
inlinevirtual

Gets the tag for use for the logging system accross the various implementations of this class.

Reimplemented in Aws::Http::WinINetConnectionPoolMgr, and Aws::Http::WinHttpConnectionPoolMgr.

Definition at line 56 of file WinConnectionPoolMgr.h.

◆ GetOpenHandle()

void* Aws::Http::WinConnectionPoolMgr::GetOpenHandle ( ) const
inlineprotected

Gets the current global "open handle"

Definition at line 77 of file WinConnectionPoolMgr.h.

◆ GetRequestTimeout()

long Aws::Http::WinConnectionPoolMgr::GetRequestTimeout ( ) const
inlineprotected

Gets the configured request timeout for this connection pool.

Definition at line 82 of file WinConnectionPoolMgr.h.

◆ GetTcpKeepAliveInterval()

unsigned long Aws::Http::WinConnectionPoolMgr::GetTcpKeepAliveInterval ( ) const
inlineprotected

Gets the interval to send a keep-alive packet for this connection pool.

Definition at line 94 of file WinConnectionPoolMgr.h.

◆ ReleaseConnectionForHost()

void Aws::Http::WinConnectionPoolMgr::ReleaseConnectionForHost ( const Aws::String host,
unsigned  port,
void *  connection 
)

Friends And Related Function Documentation

◆ WinHttpSyncHttpClient

friend class WinHttpSyncHttpClient
friend

Definition at line 122 of file WinConnectionPoolMgr.h.


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