add files

This commit is contained in:
2021-04-11 01:26:55 +04:00
parent d2b050b14b
commit fdbb7bc587
77 changed files with 10832 additions and 0 deletions

28
server/test/mDNS.go Normal file
View File

@@ -0,0 +1,28 @@
/*package server
import (
"net"
"github.com/pion/mdns"
"golang.org/x/net/ipv4"
)
func main() {
server, err := zeroconf.Register("GoZeroconf", "_workstation._tcp", "local.", 42424, []string{"txtv=0", "lo=1", "la=2"}, nil)
if err != nil {
panic(err)
}
defer server.Shutdown()
// Clean exit.
sig := make(chan os.Signal, 1)
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
select {
case <-sig:
// Exit by user
case <-time.After(time.Second * 120):
// Exit by timeout
}
log.Println("Shutting down.")
}*/