Get the IPv4 and IPv6 address of the machine as we
2016-08-23
0 0 0
no vote
Other
Earn points
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.c++
本机
以及
指定
域名
地址
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment