yanic/respond/respond.go
Julian Kornberger 2d43dda380 Send unicast to nodes that did non answer the multicast
Use the state file to store last known IP address.

closes #13
2017-01-30 17:25:23 +01:00

23 lines
337 B
Go

package respond
import (
"net"
)
const (
// default multicast group used by announced
multiCastGroup = "ff02:0:0:0:0:0:2:1001"
// 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
}