pub trait TcpEventHandler {
// Required method
fn on_tcp_event(&mut self, event: &TcpEvent, now: Instant);
}Expand description
Optional trait for nodes that need to observe TCP connection events.
Nodes on TCP bus may implement this to react to connection establishent, reset, and closure.
The TcpSimRunner calls this after deliverying messages on each tick.
Not all nodes need TCP event awareness - only the DoipTester and gateway face nodes need it.
Nodes that do not implement this trait simply ignore connection events.