This commit is contained in:
Miek Gieben 2012-05-07 15:53:35 +02:00
parent f0b75bd985
commit 1abdeb80b4
1 changed files with 2 additions and 0 deletions

View File

@ -265,6 +265,8 @@ func (c *Client) exchangeBuffer(inbuf []byte, a string, outbuf []byte) (n int, w
//
// c := NewClient()
// 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) {
r, _, _, err = c.ExchangeFull(m, a)
return