File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,17 @@ type MDNSDiscovery struct {
45
45
cancelFunc func ()
46
46
}
47
47
48
+ // Hello handles the pluggable-discovery HELLO command
48
49
func (d * MDNSDiscovery ) Hello (userAgent string , protocolVersion int ) error {
49
50
return nil
50
51
}
51
52
53
+ // Start handles the pluggable-discovery START command
52
54
func (d * MDNSDiscovery ) Start () error {
53
55
return nil
54
56
}
55
57
58
+ // Stop handles the pluggable-discovery STOP command
56
59
func (d * MDNSDiscovery ) Stop () error {
57
60
if d .cancelFunc != nil {
58
61
d .cancelFunc ()
@@ -61,13 +64,16 @@ func (d *MDNSDiscovery) Stop() error {
61
64
return nil
62
65
}
63
66
67
+ // Quit handles the pluggable-discovery QUIT command
64
68
func (d * MDNSDiscovery ) Quit () {
65
69
}
66
70
71
+ // List handles the pluggable-discovery LIST command
67
72
func (d * MDNSDiscovery ) List () ([]* discovery.Port , error ) {
68
73
return []* discovery.Port {}, nil
69
74
}
70
75
76
+ // StartSync handles the pluggable-discovery START_SYNC command
71
77
func (d * MDNSDiscovery ) StartSync (eventCB discovery.EventCallback , errorCB discovery.ErrorCallback ) error {
72
78
addFn := func (srv dnssd.Service ) {
73
79
eventCB ("add" , newBoardPortJSON (& srv ))
You can’t perform that action at this time.
0 commit comments