This repository has been archived on 2023-08-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2016-10-15 09:12:01 -04:00
|
|
|
#ifndef NNTPCHAN_BUFFER_HPP
|
|
|
|
|
#define NNTPCHAN_BUFFER_HPP
|
|
|
|
|
#include <uv.h>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace nntpchan
|
|
|
|
|
{
|
|
|
|
|
struct WriteBuffer
|
|
|
|
|
{
|
|
|
|
|
uv_write_t w;
|
|
|
|
|
uv_buf_t b;
|
|
|
|
|
|
|
|
|
|
WriteBuffer(const std::string & s);
|
|
|
|
|
WriteBuffer(const char * b, const size_t s);
|
|
|
|
|
~WriteBuffer();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|