in reply to please provide solution to convert the follwoing IPv4 Socket functions to Ipv6 using Socket6

Particulrly could you pealse tell me the corresponding functions for "inet_aton",

Pack an IP address Resolve a name
IPv4 (method 1) inet_aton(...) gethostbyname(...)
IPv4 (method 2) inet_pton(AF_INET, ...) gethostbyname2(..., AF_INET)
IPv6 inet_pton(AF_INET6, ...) gethostbyname2(..., AF_INET6)

The return value of all of these (in scalar context) is a packed IP address.

Update: Reformatted as a table.

  • Comment on Re: please provide solution to convert the follwoing IPv4 Socket functions to Ipv6 using Socket6
  • Select or Download Code