yanic/respond/respond.go

23 lines
337 B
Go
Raw Permalink Normal View History

2016-03-09 03:49:27 +01:00
package respond
import (
"net"
)
const (
// default multicast group used by announced
2016-10-04 01:08:07 +02:00
multiCastGroup = "ff02:0:0:0:0:0:2:1001"
2016-03-09 03:49:27 +01:00
// default udp port used by announced
port = 1001
2016-03-09 03:49:27 +01:00
// maximum receivable size
2016-10-04 01:08:07 +02:00
maxDataGramSize = 8192
2016-03-09 03:49:27 +01:00
)
//Response of the respond request
type Response struct {
Address net.UDPAddr
Raw []byte
}