Add a comment to Router's Start method
This commit is contained in:
1 parent
5e6b107d01
commit
576dd69b0b
1 file changed
+3
@@ -84,6 +84,9 @@ func NewRouter(config Config, name PeerName, nickName string) *Router {
|
|||||||
return router
|
return router
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Start listening for TCP connections, locally captured packets, and
|
||||||
|
// packets forwarded over UDP. This is separate from NewRouter so
|
||||||
|
// that gossipers can register before we start forming connections.
|
||||||
func (router *Router) Start() {
|
func (router *Router) Start() {
|
||||||
// we need two pcap handles since they aren't thread-safe
|
// we need two pcap handles since they aren't thread-safe
|
||||||
var pio PacketSourceSink
|
var pio PacketSourceSink
|
||||||
|
|||||||
Reference in new issue
Block a user