Begin work on AsyncFileReader demo

This commit is contained in:
Alex Hultman
2018-09-23 20:32:47 +02:00
parent 7f3753e9db
commit 2fb87b67c7
5 changed files with 140 additions and 113 deletions
+3
View File
@@ -17,6 +17,9 @@ const std::pair<bool, std::string_view> HTTP_STREAM_PAUSE = {false, std::string_
/* Return this from a stream callback to signal FIN */
const std::pair<bool, std::string_view> HTTP_STREAM_FIN = {false, std::string_view((const char *) 1, 0)};
/* Nobody cares what value this one has */
const auto HTTP_STREAM_IGNORE = HTTP_STREAM_FIN;
template <bool SSL>
struct HttpResponse : public AsyncSocket<SSL> {
private: