18 lines
225 B
C
18 lines
225 B
C
|
|
#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
|