[−][src]Function tcb::vv::communication::sender::start
pub fn start(
stream: TcpStream,
middleware_channel: Receiver<(Arc<Barrier>, Arc<Vec<u8>>)>,
local_id: usize,
configuration: Arc<Configuration>
)
Starts a Sender thread that sends messages to a peer.
Arguments
stream
- TCP stream between the peers.
middleware_channel
- Channel from the the Middleware to the Sender.
local_id
- Local peer's globally unique id.
configuration
- Middleware's configuration file.