Versions in this module Expand all Collapse all v2 v2.0.1 Jun 30, 2026 Changes in this version + const DefaultDiscoveryPort + const MessageTypeQuery + const MessageTypeResponse + 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 IPv4ForPeerWithInterface(peer net.IP) (net.IP, string, error) + func ParseIPv4(addr *net.UDPAddr) net.IP + func SubnetBroadcastTargets(port int) ([]*net.UDPAddr, error) + type Message struct + Addr string + Meta map[string]string + Service string + Type string + func DecodeMessage(data []byte) (Message, error) Other modules containing this package github.com/omalloc/contrib