Documentation
¶
Overview ¶
Package router provides a declarative way of routing mDNS messages between networks, possibly asymmetrically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type R ¶
type R struct {
// contains filtered or unexported fields
}
func (*R) Add ¶
func (r *R) Add(upstream, downstream net.PacketConn)
The router will make the upstream conn's resources flow downstream. This results in DNS questions flowing from the downstream network to the upstream one and DNS answers flowing back downstream.
The router will close these conns on completion of Run.
Click to show internal directories.
Click to hide internal directories.