pub(crate) async fn create_sockets(
my_index: usize,
addresses: &[String],
) -> Result<Vec<Option<Stream>>, CreateSocketsError>
Expand description
Creates socket connections from a list of host addresses.
The item at index i in the resulting vec, is a connection to process i, except for item
my_index
which is None (no socket to self).