Use UDP broadcasts instead of multicast for discovery

This commit is contained in:
Jakob Borg committed 2014-05-14 15:26:10 -03:00
1 parent 81cd84add2
commit 8903825e02
3 files changed
+89 -75

No files matched your search

+4 -1
View File
@@ -9,7 +9,10 @@ import (
)
func main() {
b := mc.NewBeacon("239.21.0.25", 21025)
b, err := mc.NewBeacon(21025)
if err != nil {
log.Fatal(err)
}
go func() {
for {
bs, addr := b.Recv()