Open jsdario opened 7 years ago
Hi,
I haven't tested this code on a mac... but my guess is this file has the issue: https://github.com/fromkeith/gossdp/blob/master/broadcast_unix.go
Probably around line 86.
That section of code is looking at all your attached network cards, and trying to join the desired multicast group.
Is the code crashing for you? Or are you not seeing any multicast packets being emitted? Or does it exit with the error Unable to find a compatible network interface!
?
Hi,
thanks for replying!
The code crashes for me with the error above mentioned:
join group 8 setsockopt: address family not supported by protocol family
Can you try add a sleep to the end of the func? That executable immediately exits and stops the server. Which may cause some weirdness...
Eg.
time.Sleep(30 * time.Second)
Same for me on macOS.
Hi here!
Much appreciation for your work. I am mostly new to golang and I am struggling with the following error:
But my code is rather simple. I tried to look it up online but found nothing so far, and think it might be caused by a OS flag that is missing in this package. If I am wrong, please correct me:
Here is the sample: