Skip to content

Commit 1eaa0b0

Browse files
committed
Compile error URLStreamBuffered
1 parent 3c38057 commit 1eaa0b0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/AudioTools/CoreAudio/AudioHttp/URLStreamBufferedT.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,32 @@ class URLStreamBufferedT : public AbstractURLStream {
244244
/// (Re-)defines the client
245245
void setClient(Client &client) override { urlStream.setClient(client); }
246246

247+
/// Add Connection: close to request header
248+
void setConnectionClose(bool flag) override {
249+
urlStream.setConnectionClose(flag);
250+
}
251+
252+
/// Provides the url as string
253+
const char* urlStr() override {
254+
return urlStream.urlStr();
255+
}
256+
257+
/// Total amout of data that was consumed so far
258+
size_t totalRead() override {
259+
return urlStream.totalRead();
260+
}
261+
262+
/// Provides the reported data size from the http reply
263+
int contentLength() override {
264+
return urlStream.contentLength();
265+
}
266+
267+
/// Waits the indicated time for the data to be available
268+
/// waits for some data - returns false if the request has failed
269+
bool waitForData(int timeout) override {
270+
return urlStream.waitForData(timeout);
271+
}
272+
247273
protected:
248274
BufferedTaskStream taskStream;
249275
T urlStream;

0 commit comments

Comments
 (0)