blob: 413ba31a06cba8333a7760edb8d3984256d300c3 [file] [log] [blame]
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -07001#ifndef HEADER_CURL_PIPELINE_H
2#define HEADER_CURL_PIPELINE_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
Elliott Hughes82be86d2017-09-20 17:00:17 -070010 * Copyright (C) 2015 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070011 * Copyright (C) 2013 - 2014, Linus Nielsen Feltzing, <linus@haxx.se>
12 *
13 * This software is licensed as described in the file COPYING, which
14 * you should have received as part of this distribution. The terms
Alex Deymod15eaac2016-06-28 14:49:26 -070015 * are also available at https://curl.haxx.se/docs/copyright.html.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070016 *
17 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18 * copies of the Software, and permit persons to whom the Software is
19 * furnished to do so, under the terms of the COPYING file.
20 *
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
23 *
24 ***************************************************************************/
25
Alex Deymoe3149cc2016-10-05 11:18:42 -070026CURLcode Curl_add_handle_to_pipeline(struct Curl_easy *handle,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070027 struct connectdata *conn);
Alex Deymoe3149cc2016-10-05 11:18:42 -070028void Curl_move_handle_from_send_to_recv_pipe(struct Curl_easy *handle,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070029 struct connectdata *conn);
Alex Deymoe3149cc2016-10-05 11:18:42 -070030bool Curl_pipeline_penalized(struct Curl_easy *data,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070031 struct connectdata *conn);
32
Alex Deymoe3149cc2016-10-05 11:18:42 -070033bool Curl_pipeline_site_blacklisted(struct Curl_easy *handle,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070034 struct connectdata *conn);
35
36CURLMcode Curl_pipeline_set_site_blacklist(char **sites,
Elliott Hughes82be86d2017-09-20 17:00:17 -070037 struct curl_llist *list_ptr);
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070038
Alex Deymoe3149cc2016-10-05 11:18:42 -070039bool Curl_pipeline_server_blacklisted(struct Curl_easy *handle,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070040 char *server_name);
41
42CURLMcode Curl_pipeline_set_server_blacklist(char **servers,
Elliott Hughes82be86d2017-09-20 17:00:17 -070043 struct curl_llist *list_ptr);
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070044
Alex Deymoe3149cc2016-10-05 11:18:42 -070045bool Curl_pipeline_checkget_write(struct Curl_easy *data,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070046 struct connectdata *conn);
Alex Deymoe3149cc2016-10-05 11:18:42 -070047bool Curl_pipeline_checkget_read(struct Curl_easy *data,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070048 struct connectdata *conn);
49void Curl_pipeline_leave_write(struct connectdata *conn);
50void Curl_pipeline_leave_read(struct connectdata *conn);
Alex Deymoe3149cc2016-10-05 11:18:42 -070051bool Curl_recvpipe_head(struct Curl_easy *data,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070052 struct connectdata *conn);
Alex Deymoe3149cc2016-10-05 11:18:42 -070053bool Curl_sendpipe_head(struct Curl_easy *data,
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070054 struct connectdata *conn);
55
56#endif /* HEADER_CURL_PIPELINE_H */