mirror of
https://github.com/miekg/dns.git
synced 2025-08-16 22:46:57 +02:00
better
This commit is contained in:
parent
b050075299
commit
02ff3dab3e
@ -58,8 +58,7 @@ func Exchange(m *Msg, a string) (r *Msg, err error) {
|
|||||||
// c and waits for a reply. The connection c is not closed by ExchangeConn.
|
// c and waits for a reply. The connection c is not closed by ExchangeConn.
|
||||||
// This function is going away, but can easily be mimicked:
|
// This function is going away, but can easily be mimicked:
|
||||||
//
|
//
|
||||||
// co := new(dns.Conn)
|
// co := &dns.Conn{Conn: c} // c is your net.Conn
|
||||||
// co.Conn = c // c is your net.Conn
|
|
||||||
// co.WriteMsg(m)
|
// co.WriteMsg(m)
|
||||||
// in, _ := co.ReadMsg()
|
// in, _ := co.ReadMsg()
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user