程序人生

struct hostent结构体

使用这个东西,首先要包含2个头文件:#include lt;netdb.hgt;#include lt;sys/socket.hgt;struct hostent *gethostbyname(co...