Types/fns concerning Internet Protocol (IP), versions 4 & 6

Type parse_addr_err

type parse_addr_err = {err_msg: str,}

Human-friendly feedback on why a parse_addr attempt failed

Enum ip_addr

An IP address

Variants

Function format_addr

fn format_addr(ip: ip_addr) -> str

Convert a ip_addr to a str

Arguments

Function get_addr

fn get_addr(++node: str, iotask: iotask) ->
   result::result<~[ip_addr], ip_get_addr_err>

Attempts name resolution on the provided node string

Arguments

Returns

A result<[ip_addr]/~, ip_get_addr_err> instance that will contain a vector of ip_addr results, in the case of success, or an error object in the case of failure