You use the inet_pton. function
And for the other way around you should have used inet_ntop.
For Windows-specific documentation, see inet_pton and inet_ntop.
Note that the functions can be used for both IPv4 and IPv6.
You use the inet_pton. function
And for the other way around you should have used inet_ntop.
For Windows-specific documentation, see inet_pton and inet_ntop.
Note that the functions can be used for both IPv4 and IPv6.