Add a comment to Router's Start method

This commit is contained in:
David Wragg committed 2015-06-24 17:37:02 +01:00
1 parent 5e6b107d01
commit 576dd69b0b
1 file changed
+3
+3
View File
@@ -84,6 +84,9 @@ func NewRouter(config Config, name PeerName, nickName string) *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() {
// we need two pcap handles since they aren't thread-safe
var pio PacketSourceSink