Update the doc a little
This commit is contained in:
parent
b050075299
commit
4b1cacf2d2
|
@ -58,10 +58,10 @@ func Exchange(m *Msg, a string) (r *Msg, err error) {
|
|||
// c and waits for a reply. The connection c is not closed by ExchangeConn.
|
||||
// This function is going away, but can easily be mimicked:
|
||||
//
|
||||
// co := new(dns.Conn)
|
||||
// co.Conn = c // c is your net.Conn
|
||||
// co := &dns.Conn{Conn: c} // c is your net.Conn
|
||||
// co.WriteMsg(m)
|
||||
// in, _ := co.ReadMsg()
|
||||
// co.Close()
|
||||
//
|
||||
func ExchangeConn(c net.Conn, m *Msg) (r *Msg, err error) {
|
||||
println("dns: this function is deprecated")
|
||||
|
|
Loading…
Reference in New Issue