dc_ConnPool.h File Reference

TCP connection pooling API. More...

#include "dc/dc_Dpws.h"

Functions

DC_RT_FMAC1 int dpws_init_connection_pool (int max_size, int max_idle_time)
 Initialize the client-side connection pool.
DC_RT_FMAC1 int dpws_use_connection_pool (struct dpws *dpws, DC_BOOL on)
 Activate/deactivate connection pooling for a DPWS context.
DC_RT_FMAC1 int dpws_shutdown_connection_pool ()
 Close all pooled connections, including those in use.


Detailed Description

TCP connection pooling API.

Its use allows avoiding:


Function Documentation

DC_RT_FMAC1 int dpws_init_connection_pool ( int  max_size,
int  max_idle_time 
)

Initialize the client-side connection pool.

Parameters:
max_size The maximum number of pooled connections. Default to 10.
max_idle_time The number of seconds after which an idle connection will be closed. Default to 10 s.
Returns:
DPWS_OK on success, SOAP_EOM if the pool could not be allocated.

DC_RT_FMAC1 int dpws_use_connection_pool ( struct dpws dpws,
DC_BOOL  on 
)

Activate/deactivate connection pooling for a DPWS context.

Parameters:
dpws The DPWS context.
on DC_TRUE to activate, DC_FALSE to disable.
Returns:
DPWS_OK on success.

DC_RT_FMAC1 int dpws_shutdown_connection_pool (  ) 

Close all pooled connections, including those in use.

Returns:
DPWS_OK on success.


Generated on Fri Apr 17 15:18:25 2009 for DPWSCore by  doxygen 1.5.8