#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/**28* Create a cfilter for making an "ip" connection to the29* given address, using parameters from `conn`. The "ip" connection30* can be a TCP socket, a UDP socket or even a QUIC connection.31*32* It MUST use only the supplied `ai` for its connection attempt.33*34* Such a filter may be used in "happy eyeball" scenarios, and its35* `connect` implementation needs to support non-blocking. Once connected,36* it MAY be installed in the connection filter chain to serve transfers.37*/38typedef CURLcode cf_ip_connect_create(struct Curl_cfilter **pcf,39struct Curl_easy *data,40struct connectdata *conn,41const struct Curl_addrinfo *ai,42uint8_t transport);4344CURLcode cf_ip_happy_insert_after(struct Curl_cfilter *cf_at,45struct Curl_easy *data,46uint8_t transport);4748extern struct Curl_cftype Curl_cft_ip_happy;4950#ifdef UNITTESTS51void Curl_debug_set_transport_provider(uint8_t transport,52cf_ip_connect_create *cf_create);53#endif5455#endif /* HEADER_CURL_IP_HAPPY_H */565758