This commit is contained in:
Miek Gieben 2013-10-17 21:14:57 +01:00
parent b050075299
commit 02ff3dab3e

View File

@ -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()
// //