24 lines
347 B
Go
24 lines
347 B
Go
package respond
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
// default multicast group used by announced
|
|
var MulticastGroup string = "ff02:0:0:0:0:0:2:1001"
|
|
|
|
const (
|
|
|
|
// default udp port used by announced
|
|
port = 1001
|
|
|
|
// maximum receivable size
|
|
maxDataGramSize = 8192
|
|
)
|
|
|
|
//Response of the respond request
|
|
type Response struct {
|
|
Address net.UDPAddr
|
|
Raw []byte
|
|
}
|