20 lines
296 B
C++
20 lines
296 B
C++
|
#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
|