diff --git a/includes/net/tcp/tcp_connection.hpp b/includes/net/tcp/tcp_connection.hpp new file mode 100644 index 0000000..9575aa3 --- /dev/null +++ b/includes/net/tcp/tcp_connection.hpp @@ -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 类 + }; + +} \ No newline at end of file diff --git a/src/net/tcp/tcp_connection.cc b/src/net/tcp/tcp_connection.cc new file mode 100644 index 0000000..e69de29