make value for CURLMOPT_NETWORK_CHANGED a bitmask with defined constants

This commit is contained in:
Stefan Eissing 2025-06-25 09:31:03 +02:00
parent 918944cf57
commit 1e88ce5f45
No known key found for this signature in database
5 changed files with 34 additions and 16 deletions

View file

@ -401,6 +401,17 @@ typedef enum {
CURLMOPT_LASTENTRY /* the last unused */
} CURLMoption;
/* Definition of bits for the CURLMOPT_NETWORK_CHANGED argument: */
/* - CURLM_NWCOPT_CLEAR_CONNS tells libcurl to prevent further reuse
of existing connections. Connections that are idle will be closed.
Ongoing transfers will continue with the connection they have. */
#define CURLM_NWCOPT_CLEAR_CONNS (1L<<0)
/* - CURLM_NWCOPT_CLEAR_DNS tells libcurl to prevent further reuse
of existing connections. Connections that are idle will be closed.
Ongoing transfers will continue with the connection they have. */
#define CURLM_NWCOPT_CLEAR_DNS (1L<<0)
/*
* Name: curl_multi_setopt()