摘要:
封装获取网络信息Linux—API类封装好的库: 1 #ifndef NETINFORMATION_H 2 #define NETINFORMATION_H 3 4 #include //包含gethostbyname gethostbyaddr 5 #include 6 class NetInformation 7 { 8 private: 9 10 struct hostent *hostInformation;11 struct servent *hostServer;12 13 public:14 ... 阅读全文