InetAddress.inet_ntop

Renders the current address of this.addr as an IP address string, writing to dst. dst.length is expected to be at least this.addstrlength.

struct InetAddress(bool IPv6 = false)
inet_ntop

Parameters

dst mstring

destination string buffer

Return Value

Type: mstring

a slice to valid data in dst on success or null on failure.

Errors: ENOSPC - dst is too short.

(Note: The inet_ntop() specs say it can fail with errno = EAFNOSUPPORT; this is not possible unless there is a bug in this struct template ;)

Meta