Documentation
¶
Index ¶
- Constants
- func AddrWithPort(ip net.IP, port int) string
- func EnableBroadcast(conn *net.UDPConn) error
- func EncodeMessage(msg Message) ([]byte, error)
- func IPv4ForPeer(peer net.IP) (net.IP, error)
- func ParseIPv4(addr *net.UDPAddr) net.IP
- func SubnetBroadcastTargets(port int) ([]*net.UDPAddr, error)
- type Message
Constants ¶
View Source
const ( MessageTypeQuery = "query" MessageTypeResponse = "response" )
View Source
const DefaultDiscoveryPort = 5353
Variables ¶
This section is empty.
Functions ¶
func EnableBroadcast ¶
func EncodeMessage ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.