This commit is contained in:
flamingcow
2019-05-04 23:21:11 -07:00
commit dd9a0a974f
6 changed files with 188 additions and 0 deletions

17
stream_buffer.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include "buffer.h"
namespace firebuf {
class StreamBuffer : public Buffer {
public:
StreamBuffer(int sock, size_t size);
[[nodiscard]] bool Refill();
private:
int sock_;
};
} // namespace firebuf