Add exchange structure for the client

This commit is contained in:
Miek Gieben 2012-11-18 12:33:56 +01:00
parent 3c3d2af072
commit 099d0c1fc7
1 changed files with 4 additions and 1 deletions

View File

@ -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