Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想实现一个允许两个客户端通信的套接字应用程序。现在我已经通过 TCP 协议为单个服务器和多个客户端实现了它。现在我需要的是,我想实现一个将监视服务器的类,如果客户端数量超过限制,则启动新服务器,传入的客户端请求将重定向到该服务器。
如果有人对如何实现这一目标有任何想法,请告诉我。