Constants and aliases.
Obtains a slice to the binary address in from this.addr, that is, for IPv4 the sin_addr or for IPv6 the sin6_addr field, respectively.
Clears this.addr.
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.
Sets the address field (sin_addr/sin6_addr) of this.addr to the address represented by the string in src. src is expected to contain a valid IP address.
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.
Copies addr to this.addr.
Copies *addr to this.addr.
Sets this.addr to the IP address in ip_address_str and the port to port.
Sets this.addr to the wildcard "any" IP address and the port to port.
Gets the port number from this.addr.
Sets the port field (sin_port/sin6_port) of this.addr to p.
Sets this.addr to the wildcard "any" IP address.
Internet address struct instance. The address and port fields should be accessed by port() and inet_pton()/inet_ntop() unless they are copied from another instance.
Constants and aliases.