AddPeer is called by the switch after the peer is added and successfully started. Use it to start goroutines communicating with the peer.
(peer Peer)
| 33 | // AddPeer is called by the switch after the peer is added and successfully |
| 34 | // started. Use it to start goroutines communicating with the peer. |
| 35 | AddPeer(peer Peer) |
| 36 | |
| 37 | // RemovePeer is called by the switch when the peer is stopped (due to error |
| 38 | // or other reason). |
no outgoing calls