Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Get the IPv4 and IPv6 address of the machine as we
no vote
Application background This code can be used to achieve access to the machine and specify the domain of IPv4 address and IPv6 address, code the two C + + files, not write together, when in use can be commented out one or new project which will be a C + + file cut into. Key Technology For the local IP address. We only need to use winsocket inherited Berkeley socket API function gethostbyname () host information obtained through the name, and then show the IP address can be output IPv6 address the address family changed for AF AF_INET6. further the IPv6 address for. And to get the IP address of the domain name when you need to get the same address as gethostbyname () to get the information, and then displayed.
ydemo
2016-08-23
0
1
No more~