Function cdns_rs::common::ip2pkt

source ·
pub fn ip2pkt(ip: &IpAddr) -> CDnsResult<Vec<u8>>
Expand description

Converts IpAddr to sequence of bytes coded specially for the payload of package.

§Arguments

  • ip - the argument with IP address

§Returns