本文没有带反射部分内容,可以看我之前发的 #pragma once #include <string> #include <iostream> #include <thread> #include <unordered_map> using namespace std; #ifndef _SERVER_ #define _SERVER_ #include <winsock.h> #include "Net.h" #include "Util.h" #pragma comment(lib,"ws2_32.lib") NAME_SPACE_START(myUtil) #define SERVER_ADDR "127.0.0.1" #define SERVER_PORT 8080 class Server { public: Server(); Server(const std::string& addr = SERVER_ADDR, const int& port = SERVER_PORT); ~Server() {} public: bool listen(const int&...