|
2327 | 2327 | */ |
2328 | 2328 | const CURL_FNMATCHFUNC_NOMATCH = UNKNOWN; |
2329 | 2329 |
|
| 2330 | +#ifdef HAVE_SOCKETS |
| 2331 | +/** |
| 2332 | + * Used with CURLOPT_SOCKOPTFUNCTION, which receives a Socket wrapping the |
| 2333 | + * descriptor libcurl just created and must return one of the CURL_SOCKOPT_* |
| 2334 | + * constants below. |
| 2335 | + * @var int |
| 2336 | + * @cvalue CURLOPT_SOCKOPTFUNCTION |
| 2337 | + */ |
| 2338 | +const CURLOPT_SOCKOPTFUNCTION = UNKNOWN; |
| 2339 | +/** |
| 2340 | + * Used with CURLOPT_OPENSOCKETFUNCTION, which receives the resolved address and |
| 2341 | + * must return a Socket to use for the connection, or false to abort it. |
| 2342 | + * @var int |
| 2343 | + * @cvalue CURLOPT_OPENSOCKETFUNCTION |
| 2344 | + */ |
| 2345 | +const CURLOPT_OPENSOCKETFUNCTION = UNKNOWN; |
| 2346 | +/** |
| 2347 | + * Used with CURLOPT_CLOSESOCKETFUNCTION, which is notified when libcurl is done |
| 2348 | + * with a socket created by the open-socket callback. |
| 2349 | + * @var int |
| 2350 | + * @cvalue CURLOPT_CLOSESOCKETFUNCTION |
| 2351 | + */ |
| 2352 | +const CURLOPT_CLOSESOCKETFUNCTION = UNKNOWN; |
| 2353 | +/** |
| 2354 | + * Return value for the CURLOPT_SOCKOPTFUNCTION callback: proceed normally. |
| 2355 | + * @var int |
| 2356 | + * @cvalue CURL_SOCKOPT_OK |
| 2357 | + */ |
| 2358 | +const CURL_SOCKOPT_OK = UNKNOWN; |
| 2359 | +/** |
| 2360 | + * Return value for the CURLOPT_SOCKOPTFUNCTION callback: abort the connection. |
| 2361 | + * @var int |
| 2362 | + * @cvalue CURL_SOCKOPT_ERROR |
| 2363 | + */ |
| 2364 | +const CURL_SOCKOPT_ERROR = UNKNOWN; |
| 2365 | +/** |
| 2366 | + * Return value for the CURLOPT_SOCKOPTFUNCTION callback: the socket is already |
| 2367 | + * connected, so libcurl should skip its own connect step. |
| 2368 | + * @var int |
| 2369 | + * @cvalue CURL_SOCKOPT_ALREADY_CONNECTED |
| 2370 | + */ |
| 2371 | +const CURL_SOCKOPT_ALREADY_CONNECTED = UNKNOWN; |
| 2372 | +/** |
| 2373 | + * Purpose passed to the socket callbacks: a socket for a regular IP connection. |
| 2374 | + * @var int |
| 2375 | + * @cvalue CURLSOCKTYPE_IPCXN |
| 2376 | + */ |
| 2377 | +const CURLSOCKTYPE_IPCXN = UNKNOWN; |
| 2378 | +/** |
| 2379 | + * Purpose passed to the socket callbacks: a socket created from accept() (e.g. |
| 2380 | + * active FTP). |
| 2381 | + * @var int |
| 2382 | + * @cvalue CURLSOCKTYPE_ACCEPT |
| 2383 | + */ |
| 2384 | +const CURLSOCKTYPE_ACCEPT = UNKNOWN; |
| 2385 | +#endif |
| 2386 | + |
2330 | 2387 | /* Available since 7.21.2 */ |
2331 | 2388 | /** |
2332 | 2389 | * @var int |
|
0 commit comments