IPv6 multicast on Windows (fixes #1817)

This commit is contained in:
Jakob Borg
2015-08-23 15:02:18 +02:00
parent 40d0100132
commit a7f2416c0c
83 changed files with 7747 additions and 55 deletions

View File

@@ -18,7 +18,11 @@ type Interface interface {
Recv() ([]byte, net.Addr)
}
func genericReader(conn *net.UDPConn, outbox chan<- recv) {
type readerFrom interface {
ReadFrom([]byte) (int, net.Addr, error)
}
func genericReader(conn readerFrom, outbox chan<- recv) {
bs := make([]byte, 65536)
for {
n, addr, err := conn.ReadFrom(bs)