Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
func Listen(entries chan<- *ServiceEntry, exit chan struct{}) error
func Lookup ¶
func Lookup(service string, entries chan<- *ServiceEntry) error
func Query ¶
func Query(params *QueryParam) error
Query 在一个域中查找一个给定的服务,最多等待指定的秒数 结果是流式的 一个通道。发送不会阻塞,所以客户应该确保 读取或缓存。
Types ¶
type DNSSDService ¶
type DNSSDService struct {
ServiceMDNS *ServiceMDNS
}
type GetMachineIP ¶
type QueryParam ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SendMulticast ¶
SendMulticast 发送组播消息
type ServiceEntry ¶
Click to show internal directories.
Click to hide internal directories.