diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-02-15 11:03:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-02-15 11:10:18 +0100 |
commit | c25383ae1329199107943211e543612d288eb1ae (patch) | |
tree | 2331b0da5e51f749924dd205702109ebc974e9a6 /lib/pingpong.h | |
parent | 6106eeba16f45a6a2fccdfac2b9b64dcf12f2a20 (diff) | |
download | curl-c25383ae1329199107943211e543612d288eb1ae.tar.gz |
rename "easy" statemachines: call them block instead
... since they're not used by the easy interface really, I wanted to
remove the association. Also, I unified the pingpong statemachine driver
into a single function with a 'wait' argument: Curl_pp_statemach.
Diffstat (limited to 'lib/pingpong.h')
-rw-r--r-- | lib/pingpong.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/pingpong.h b/lib/pingpong.h index b8ed91ca4..81d0c32a3 100644 --- a/lib/pingpong.h +++ b/lib/pingpong.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -69,19 +69,12 @@ struct pingpong { }; /* - * Curl_pp_multi_statemach() + * Curl_pp_statemach() * - * called repeatedly until done when the multi interface is used. + * called repeatedly until done. Set 'wait' to make it wait a while on the + * socket if there's no traffic. */ -CURLcode Curl_pp_multi_statemach(struct pingpong *pp); - -/* - * Curl_pp_easy_statemach() - * - * called repeatedly until done when the easy interface is used. - */ -CURLcode Curl_pp_easy_statemach(struct pingpong *pp); - +CURLcode Curl_pp_statemach(struct pingpong *pp, bool wait); /* initialize stuff to prepare for reading a fresh new response */ void Curl_pp_init(struct pingpong *pp); |