[][src]Function libra_network_address::parse_ip_tcp

pub fn parse_ip_tcp(protos: &[Protocol]) -> Option<((IpAddr, u16), &[Protocol])>

parse the &[Protocol] into the "/ip4/<addr>/tcp/<port>" or "/ip6/<addr>/tcp/<port>" prefix and unparsed &[Protocol] suffix.