chenshuo / muduo

Event-driven network library for multi-threaded Linux server in C++11
https://github.com/chenshuo/muduo
Other
14.85k stars 5.17k forks source link

服务端启动的时候,如何判断是否绑定ip和端口成功? #476

Closed HxwProgrammer closed 4 years ago

HxwProgrammer commented 4 years ago

image image

没有函数可以判断,使用errno返回也是0,只能看那一行错误日志。