C++仿muduo库onethreadoneloop高并发服务器
一.基本设计与模块 class Buffer
{
private:
std::vector<char> _buffer;
uint64_t _reader_idx; // 读偏移量
uint64_t _write_idx; // 写偏移量
}
class Socket
{
private:
int _sockfd;
}
class C
