Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULTWAITTIME = 5.0
View Source
const PORT = 38999
View Source
const RegisterMessage = `{"method":"registration","params":{"phoneMac":"AAAAAAAAAAAA","register":false,"phoneIp":"1.2.3.4","id":"1"}}`
Variables ¶
This section is empty.
Functions ¶
func CheckIfOur ¶
Types ¶
type BroadcastProtocol ¶
type BroadcastProtocol struct { Reg models.BulbRegistry BroadcastAddr *net.UDPAddr Transport *net.UDPConn }
func NewProtocol ¶
func NewProtocol(addr ...string) (*BroadcastProtocol, error)
func (*BroadcastProtocol) Discover ¶
func (b *BroadcastProtocol) Discover() (string, error)
Click to show internal directories.
Click to hide internal directories.