/* * @Description: * @Version: 1.0 * @Autor: lishengyin * @Date: 2022-04-11 17:30:58 * @LastEditors: lishengyin * @LastEditTime: 2022-04-11 17:43:09 */ #ifndef __TCPSERVER_HPP_ #define __TCPSERVER_HPP_ #include "UserApp.hpp" #include "TcpServer.hpp" class TcpServer:private NonCopyable { private: TcpServer(int port):port_(port){} public: using Ptr = std::shared_ptr; ~TcpServer(); /** * @description: 创建新实例 * @param {int} port * @return {*} */ static std::shared_ptr CreateNew(int port); private: int port_; }; #endif