Function libzt::zts_addr_get [−][src]
pub unsafe extern "C" fn zts_addr_get(
net_id: u64,
family: c_uint,
addr: *mut zts_sockaddr_storage
) -> c_int
Expand description
@brief Get the first-assigned IP on the given network.
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 addr Destination buffer to hold address
@return ZTS_ERR_OK
if successful, ZTS_ERR_SERVICE
if the node
experiences a problem, ZTS_ERR_ARG
if invalid argument.