good morning!!!!

Skip to content
Snippets Groups Projects
Commit f570b68e authored by Felix Lange's avatar Felix Lange
Browse files

p2p/nat: add docs for discover

parent bf11a47f
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,9 @@ func discoverUPnP() Interface {
return nil
}
// finds devices matching the given target and calls matcher for all
// advertised services of each device. The first non-nil service found
// is sent into out. If no service matched, nil is sent.
func discover(out chan<- *upnp, target string, matcher func(*goupnp.RootDevice, goupnp.ServiceClient) *upnp) {
devs, err := goupnp.DiscoverDevices(target)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment