pub fn to_tcp_socket_addr(addr: &Multiaddr) -> Option<SocketAddr>
Expand description

Extracts the TCP socket address if the multiaddr starts with an /ip4 or /ip6 component, followed by a /tcp component. Otherwise the function returns None.