connnection 初步封装, 未完成

This commit is contained in:
yhy 2024-12-25 19:39:38 +08:00
parent a229d2ba31
commit c435b7c69a
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#pragma once
#include "fd_event.hpp"
namespace tinyrpc {
class TcpConnection {
public:
TcpConnection(int fd) : m_fdEvent(fd){};
~TcpConnection();
private:
FdEvent m_fdEvent;
// TODO .... 完善 TcpConnection 类
};
}

View File