[−][src]Function tcb::graph::communication::acceptor::start
pub fn start(
local_id: usize,
local_port: usize,
peer_addresses: Vec<String>,
middleware_channel: Sender<ClientPeerMiddleware>,
configuration: Arc<Configuration>,
setup_end_barrier: Arc<Barrier>
)
Starts the Acceptor thread that waits for connections from other peers and spawns a Reader for each. This function is called on a thread as to not block the caller.
Arguments
local_id
- Local peer's globally unique id.
local_port
- Port where the middleware will be listening for connections.
peer_addresses
- Addresses the middleware will connect to.
middleware_channel
- Channel from the middleware to the peer.
configuration
- Middleware's configuration file.
setup_end_barrier
- Barrier signalling the middleware connected to every peer.