From 099d0c1fc747204d183be61702ed40e6ad446990 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 18 Nov 2012 12:33:56 +0100 Subject: [PATCH] Add exchange structure for the client --- client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index bf2746e2..426b5d67 100644 --- a/client.go +++ b/client.go @@ -25,7 +25,10 @@ type reply struct { // An Exchange is returned on the channel when calling client.Do or client.DoRtt type Exchange struct { - + Request *Msg // the outgoing message + Reply *Msg // the reply coming back + Rtt time.Duration // Round trip time + Error error // any errors } // A Client defines parameter for a DNS client. A nil