Function cdns_rs::a_sync::common::ip2pkt [−][src]
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