Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Responder ¶
type Responder struct {
// contains filtered or unexported fields
}
func NewDnsResponder ¶
func (*Responder) RecvAndRespond ¶
recvLoop repeatedly calls dnsConn.ReadFrom, extracts the packets contained in the incoming DNS queries, and puts them on ttConn's incoming queue. Whenever a query calls for a response, constructs a partial response and passes it to sendLoop over ch.
Click to show internal directories.
Click to hide internal directories.