Function libzt::zts_addr_get_str [−][src]
pub unsafe extern "C" fn zts_addr_get_str(
net_id: u64,
family: c_uint,
dst: *mut c_char,
len: c_uint
) -> c_int
Expand description
@brief Get the first-assigned IP on the given network as a null-terminated human-readable string
To get all assigned addresses on a given network, use zts_addr_get_all()
.
@param net_id Network ID
@param family ZTS_AF_INET
, or ZTS_AF_INET6
@param dst Destination buffer
@param len Length of destination buffer (must be exactly ZTS_IP_MAX_STR_LEN
)
@return ZTS_ERR_OK
if successful, ZTS_ERR_SERVICE
if the node
experiences a problem, ZTS_ERR_ARG
if invalid argument.