2016-03-09 02:49:27 +00:00
|
|
|
package respond
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
2017-07-05 13:51:06 +00:00
|
|
|
// default multicast group used by announced
|
|
|
|
var MulticastGroup string = "ff02:0:0:0:0:0:2:1001"
|
|
|
|
|
2016-03-09 02:49:27 +00:00
|
|
|
const (
|
|
|
|
|
|
|
|
// default udp port used by announced
|
2017-01-29 21:14:40 +00:00
|
|
|
port = 1001
|
2016-03-09 02:49:27 +00:00
|
|
|
|
|
|
|
// maximum receivable size
|
2016-10-03 23:08:07 +00:00
|
|
|
maxDataGramSize = 8192
|
2016-03-09 02:49:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
//Response of the respond request
|
|
|
|
type Response struct {
|
|
|
|
Address net.UDPAddr
|
|
|
|
Raw []byte
|
|
|
|
}
|