首页
新闻
博问
专区
闪存
班级
我的博客
我的园子
账号设置
退出登录
注册
登录
远道者
天道酬勤
博客园
首页
新随笔
联系
订阅
管理
2020年9月9日
gethostbyname的线程安全
摘要:最近线上遇到一个问题 导致程序崩溃 最后查到是gethostbyname的问题 把代码精简了 如下: bool test(char* host,int port) { hostent *m_phostent=gethostbyname(host); if(m_phostent==NULL)retur
阅读全文
posted @ 2020-09-09 18:04 远道者
阅读(311)
评论(0)
推荐(0)
编辑