Use UDP broadcasts instead of multicast for discovery

This commit is contained in:
Jakob Borg
2014-05-14 15:26:05 -03:00
parent 81cd84add2
commit 8903825e02
3 changed files with 94 additions and 80 deletions

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()