Function ockam_api::multiaddr_to_transport_route
source · pub fn multiaddr_to_transport_route(ma: &MultiAddr) -> Option<Route>
Expand description
Resolve all the multiaddresses which represent transport addresses
For example /tcp/127.0.0.1/port/4000 is transformed to the Address (TCP, “127.0.0.1:4000”)
The creation of a TCP worker and the substitution of that transport address to a worker address
is done later with context.resolve_transport_route(route)