res_query ( int res_query(const char *dname, int class, int type,unsigned char *answer,
int anslen);
) 是线程安全的吗?
我认为是这样,因为它将答案写入用户分配的缓冲区(与使用静态分配的缓冲区的 gethostbyname 形成对比)。
有人确定吗?
res_query ( int res_query(const char *dname, int class, int type,unsigned char *answer,
int anslen);
) 是线程安全的吗?
我认为是这样,因为它将答案写入用户分配的缓冲区(与使用静态分配的缓冲区的 gethostbyname 形成对比)。
有人确定吗?