pipeline.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef HEADER_CURL_PIPELINE_H
  2. #define HEADER_CURL_PIPELINE_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 2015, Daniel Stenberg, <[email protected]>, et al.
  11. * Copyright (C) 2013 - 2014, Linus Nielsen Feltzing, <[email protected]>
  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
  15. * are also available at https://curl.haxx.se/docs/copyright.html.
  16. *
  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. CURLcode Curl_add_handle_to_pipeline(struct Curl_easy *handle,
  26. struct connectdata *conn);
  27. void Curl_move_handle_from_send_to_recv_pipe(struct Curl_easy *handle,
  28. struct connectdata *conn);
  29. bool Curl_pipeline_penalized(struct Curl_easy *data,
  30. struct connectdata *conn);
  31. bool Curl_pipeline_site_blacklisted(struct Curl_easy *handle,
  32. struct connectdata *conn);
  33. CURLMcode Curl_pipeline_set_site_blacklist(char **sites,
  34. struct curl_llist **list_ptr);
  35. bool Curl_pipeline_server_blacklisted(struct Curl_easy *handle,
  36. char *server_name);
  37. CURLMcode Curl_pipeline_set_server_blacklist(char **servers,
  38. struct curl_llist **list_ptr);
  39. bool Curl_pipeline_checkget_write(struct Curl_easy *data,
  40. struct connectdata *conn);
  41. bool Curl_pipeline_checkget_read(struct Curl_easy *data,
  42. struct connectdata *conn);
  43. void Curl_pipeline_leave_write(struct connectdata *conn);
  44. void Curl_pipeline_leave_read(struct connectdata *conn);
  45. bool Curl_recvpipe_head(struct Curl_easy *data,
  46. struct connectdata *conn);
  47. bool Curl_sendpipe_head(struct Curl_easy *data,
  48. struct connectdata *conn);
  49. #endif /* HEADER_CURL_PIPELINE_H */