#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. | |
Its use allows avoiding:
| DC_RT_FMAC1 int dpws_init_connection_pool | ( | int | max_size, | |
| int | max_idle_time | |||
| ) |
Initialize the client-side connection pool.
| 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. |
| DC_RT_FMAC1 int dpws_use_connection_pool | ( | struct dpws * | dpws, | |
| DC_BOOL | on | |||
| ) |
Activate/deactivate connection pooling for a DPWS context.
| dpws | The DPWS context. | |
| on | DC_TRUE to activate, DC_FALSE to disable. |
| DC_RT_FMAC1 int dpws_shutdown_connection_pool | ( | ) |
Close all pooled connections, including those in use.
1.5.8