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 连接,现在我想停止服务广告但不希望服务器停止!基本上只接受 1 个客户端。
编辑:希望能够添加 maxClients 变量,所以我可以修改允许的客户端数量。
接受 maxClients 后调用 NSNetServices 停止方法