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 {
4545 cancelFunc func ()
4646}
4747
48+ // Hello handles the pluggable-discovery HELLO command
4849func (d * MDNSDiscovery ) Hello (userAgent string , protocolVersion int ) error {
4950 return nil
5051}
5152
53+ // Start handles the pluggable-discovery START command
5254func (d * MDNSDiscovery ) Start () error {
5355 return nil
5456}
5557
58+ // Stop handles the pluggable-discovery STOP command
5659func (d * MDNSDiscovery ) Stop () error {
5760 if d .cancelFunc != nil {
5861 d .cancelFunc ()
@@ -61,13 +64,16 @@ func (d *MDNSDiscovery) Stop() error {
6164 return nil
6265}
6366
67+ // Quit handles the pluggable-discovery QUIT command
6468func (d * MDNSDiscovery ) Quit () {
6569}
6670
71+ // List handles the pluggable-discovery LIST command
6772func (d * MDNSDiscovery ) List () ([]* discovery.Port , error ) {
6873 return []* discovery.Port {}, nil
6974}
7075
76+ // StartSync handles the pluggable-discovery START_SYNC command
7177func (d * MDNSDiscovery ) StartSync (eventCB discovery.EventCallback , errorCB discovery.ErrorCallback ) error {
7278 addFn := func (srv dnssd.Service ) {
7379 eventCB ("add" , newBoardPortJSON (& srv ))
You can’t perform that action at this time.
0 commit comments