fix documentation
This commit is contained in:
parent
bf3771da8e
commit
0ff492af57
|
@ -6,7 +6,7 @@ be fixed.
|
||||||
* Speed, we can always go faster. A simple reflect server now hits 35/45K qps
|
* Speed, we can always go faster. A simple reflect server now hits 35/45K qps
|
||||||
* go test; only works correct on my machine
|
* go test; only works correct on my machine
|
||||||
* privatekey.Precompute() when signing?
|
* privatekey.Precompute() when signing?
|
||||||
* outgoing xfr fixen
|
* outgoing [AI]xfr
|
||||||
* zonereader that extracts glue (or at least signals it) and other usefull stuff?
|
* zonereader that extracts glue (or at least signals it) and other usefull stuff?
|
||||||
|
|
||||||
## Examples to add
|
## Examples to add
|
||||||
|
|
|
@ -306,7 +306,7 @@ func (c *Client) Exchange(m *Msg, a string) (r *Msg, err error) {
|
||||||
// contained in a and waits for an reply. Basic use pattern with a *Client:
|
// contained in a and waits for an reply. Basic use pattern with a *Client:
|
||||||
//
|
//
|
||||||
// c := dns.NewClient()
|
// c := dns.NewClient()
|
||||||
// in, rtt, addr, err := c.Exchange(message, "127.0.0.1:53")
|
// in, rtt, addr, err := c.ExchangeFull(message, "127.0.0.1:53")
|
||||||
//
|
//
|
||||||
// The 'addr' return value is superfluous in this case, but it is here to retain symmetry
|
// The 'addr' return value is superfluous in this case, but it is here to retain symmetry
|
||||||
// with the asynchronous call, see Client.Do().
|
// with the asynchronous call, see Client.Do().
|
||||||
|
|
5
xfr.go
5
xfr.go
|
@ -2,15 +2,16 @@ package dns
|
||||||
|
|
||||||
// XfrReceives requests an incoming Ixfr or Axfr. If the message q's question
|
// XfrReceives requests an incoming Ixfr or Axfr. If the message q's question
|
||||||
// section has type TypeAXFR an Axfr is performed, if it is TypeIXFR it does an Ixfr.
|
// section has type TypeAXFR an Axfr is performed, if it is TypeIXFR it does an Ixfr.
|
||||||
// The [AI]xfr's records are returned on the channel. Note the with an IXFR the client
|
// The [AI]xfr's records are returned on the channel. Note that with an IXFR the client
|
||||||
// needs to determine if records are to be removed are added.
|
// needs to determine if records are to be removed are added.
|
||||||
// The channel is closed when the transfer is terminated.
|
// The channel is closed when the transfer is terminated.
|
||||||
//
|
//
|
||||||
// Basic use pattern for setting up a transfer:
|
// Basic use pattern for setting up a transfer:
|
||||||
//
|
//
|
||||||
|
// // m contains the [AI]xfr request
|
||||||
// t, _ := client.XfrReceive(m, "127.0.0.1:53")
|
// t, _ := client.XfrReceive(m, "127.0.0.1:53")
|
||||||
// for r := range t {
|
// for r := range t {
|
||||||
// //
|
// // ... deal with r.Reply or r.Error
|
||||||
// }
|
// }
|
||||||
func (c *Client) XfrReceive(q *Msg, a string) (chan *Exchange, error) {
|
func (c *Client) XfrReceive(q *Msg, a string) (chan *Exchange, error) {
|
||||||
w := new(reply)
|
w := new(reply)
|
||||||
|
|
Loading…
Reference in New Issue