Qt:The bound address is already in use解决及QTcpServer如何停止监听
Theboundaddressisalreadyinuse解决Qttcp服务器重复监听同个端口时会出错:Theboundaddressisalreadyinuse//maybeoccurerror:TheboundaddressisalreadyinuseQTcpServertcp1,tcp2;tcp1.setMaxPendingConnections(500);tcp1.listen(QHost