#ifndef HEADER_CURL_IP_HAPPY_H1#define HEADER_CURL_IP_HAPPY_H2/***************************************************************************3* _ _ ____ _4* Project ___| | | | _ \| |5* / __| | | | |_) | |6* | (__| |_| | _ <| |___7* \___|\___/|_| \_\_____|8*9* Copyright (C) Daniel Stenberg, <[email protected]>, et al.10*11* This software is licensed as described in the file COPYING, which12* you should have received as part of this distribution. The terms13* are also available at https://curl.se/docs/copyright.html.14*15* You may opt to use, copy, modify, merge, publish, distribute and/or sell16* copies of the Software, and permit persons to whom the Software is17* furnished to do so, under the terms of the COPYING file.18*19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY20* KIND, either express or implied.21*22* SPDX-License-Identifier: curl23*24***************************************************************************/25#include "curl_setup.h"2627#include "curlx/nonblock.h" /* for curlx_nonblock() */28#include "sockaddr.h"2930/**31* Create a cfilter for making an "ip" connection to the32* given address, using parameters from `conn`. The "ip" connection33* can be a TCP socket, a UDP socket or even a QUIC connection.34*35* It MUST use only the supplied `ai` for its connection attempt.36*37* Such a filter may be used in "happy eyeball" scenarios, and its38* `connect` implementation needs to support non-blocking. Once connected,39* it MAY be installed in the connection filter chain to serve transfers.40*/41typedef CURLcode cf_ip_connect_create(struct Curl_cfilter **pcf,42struct Curl_easy *data,43struct connectdata *conn,44const struct Curl_addrinfo *ai,45int transport);4647CURLcode cf_ip_happy_insert_after(struct Curl_cfilter *cf_at,48struct Curl_easy *data,49int transport);5051extern struct Curl_cftype Curl_cft_ip_happy;5253#ifdef UNITTESTS54void Curl_debug_set_transport_provider(int transport,55cf_ip_connect_create *cf_create);56#endif5758#endif /* HEADER_CURL_IP_HAPPY_H */596061