Sets the address field (sin_addr/sin6_addr) of this.addr to the address in ip_address_str. ip_address_str is expected be a NUL-terminated string.
input IP address string
1 on success or 0 if src does not contain a valid IP address.
(Note: The inet_pton() specs say it can return -1 with errno = EAFNOSUPPORT; this is not possible unless there is a bug in this struct template ;)
See Implementation
Sets the address field (sin_addr/sin6_addr) of this.addr to the address in ip_address_str. ip_address_str is expected be a NUL-terminated string.