获取本机IP地址以及MAC地址
本文档由 romanwish 分享于2011-08-13 11:14
获取本机IP地址以及MAC地址 来自网络2010 12 23 11:19 include stdio h include stdlib h include string h include unistd h include fcntl h include sys ioctl h include netdb h include netinet in h include netinet if ether h include net if h include arpa inet h 取得本地ip void GetLocalIp unsigned long pOutIpAddress int fd;struct ifreq ifr;struct sockaddr in sin;fd socket PF INET SO..
分享:
君,已阅读到文档的结尾了呢~~