mirror of
https://github.com/miekg/dns.git
synced 2025-10-10 17:31:01 +02:00
docs
This commit is contained in:
parent
f0b75bd985
commit
1abdeb80b4
@ -265,6 +265,8 @@ func (c *Client) exchangeBuffer(inbuf []byte, a string, outbuf []byte) (n int, w
|
|||||||
//
|
//
|
||||||
// c := NewClient()
|
// c := NewClient()
|
||||||
// in, err := c.Exchange(message, "127.0.0.1:53")
|
// in, err := c.Exchange(message, "127.0.0.1:53")
|
||||||
|
//
|
||||||
|
// See Client.ExchangeFull(...) to get the round trip time.
|
||||||
func (c *Client) Exchange(m *Msg, a string) (r *Msg, err error) {
|
func (c *Client) Exchange(m *Msg, a string) (r *Msg, err error) {
|
||||||
r, _, _, err = c.ExchangeFull(m, a)
|
r, _, _, err = c.ExchangeFull(m, a)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user