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
- CDnsResult with vector of coded data
pub fn ip2pkt(ip: &IpAddr) -> CDnsResult<Vec<u8>>Converts IpAddr to sequence of bytes coded specially for the payload of package.
ip - the argument with IP address