libevent / libev / boost::asio https://www.zhihu.com/question/20278441 注意github上有 思路:在业务层协议上实现动态端口分配问题。