201 Commits

Author SHA1 Message Date
Miek Gieben
e2ca025569 update documentation 2012-11-19 16:22:54 +01:00
Miek Gieben
5349c3532f Per suggestion of Jan Mercle 2012-11-19 14:43:02 +01:00
Miek Gieben
a0b6e30da7 Fix chaos.go for the new api 2012-11-18 13:51:42 +01:00
Miek Gieben
553b780257 Rearrange some comments 2012-11-18 13:28:16 +01:00
Miek Gieben
b34501bc1a add remark 2012-11-18 13:12:11 +01:00
Miek Gieben
cbf025827a Fix the documentation 2012-11-18 13:03:11 +01:00
Miek Gieben
ccaa90b31e Make client.Do() return a channel (ala time.NewTicker)
This new API finally makes sense, and ditches the callback
2012-11-18 12:50:22 +01:00
Miek Gieben
099d0c1fc7 Add exchange structure for the client 2012-11-18 12:33:56 +01:00
Miek Gieben
3c3d2af072 Remove the Rtt variants 2012-11-18 12:29:40 +01:00
Miek Gieben
ea947838d8 Do the TCP write in one write
Before the tcp writes were done like NSD does them:
2 bytes length, and the rest of the message.

Now a complete buffer is created with LLMMM...MMM, where
LL is the 2 byte length and MMM...MMM is the message to be send.
This makes the reply faster at the cost of doing a realloc of the
message buffer.
2012-10-17 12:40:57 +02:00
Miek Gieben
1cca340f0b Use attemps also in the dial function 2012-10-17 09:05:26 +02:00
Miek Gieben
bf1e1e15dc docs 2012-10-16 19:14:03 +02:00
Miek Gieben
56221057d3 exchangeBuffer was and is not needed 2012-10-16 13:18:59 +02:00
Miek Gieben
be0423d80f Tsig for queries is working again 2012-10-16 09:42:38 +02:00
Miek Gieben
2d3630ac98 refacter the client code a bit and remove the duplicate code 2012-10-16 09:36:52 +02:00
Miek Gieben
3089111fa4 calculate tsig in the normal query path too 2012-10-16 08:50:53 +02:00
Miek Gieben
39b9f93167 Fix tsig in the normal sending of queries 2012-10-15 20:00:49 +02:00
Miek Gieben
570bf8dc69 Use proper error in packing and unpacking
All the relevant functions now return an error instead of
a simple boolean. This greatly approves the feedback to coders.

Spotted some fishy error handling along the way and fix that too.
2012-10-09 21:17:54 +02:00
Miek Gieben
6e9317868b doc tweaks 2012-09-01 17:06:24 +02:00
Miek Gieben
ff946625a6 small tweaks 2012-09-01 16:57:15 +02:00
Miek Gieben
7a0877d090 Merge conflict fixed 2012-08-31 15:10:43 +02:00
Miek Gieben
90a2076d8d We were dialing twice 2012-08-31 14:55:47 +02:00
Miek Gieben
9255ad61ac outgoing xfr works, but not for my Go code 2012-08-28 21:36:25 +02:00
Miek Gieben
68961f2f5b Make the IsTsig and IsEdn0 more usefull by returning the record 2012-08-25 11:24:01 +02:00
Miek Gieben
15f03a72fb Not needed 2012-08-23 10:33:33 +02:00
Miek Gieben
a8b3c8139b Clean up the client 2012-08-17 08:45:26 +02:00
Miek Gieben
b720003623 make api smaller 2012-08-17 08:31:38 +02:00
Miek Gieben
1958fd2031 Fix compile errors 2012-08-08 09:45:31 +02:00
Miek Gieben
a282683f7c Add DoRtt 2012-08-08 09:38:23 +02:00
Miek Gieben
37ff3f9f84 Add DROP and READXFR 2012-08-07 12:33:31 +02:00
Miek Gieben
cf84dce538 Update the todo 2012-08-06 20:39:35 +02:00
Miek Gieben
eec679d102 Remove hijacked 2012-08-06 20:34:09 +02:00
Miek Gieben
9ac8d2d7de RequestWriter can go too 2012-08-06 20:09:45 +02:00
Miek Gieben
7de64f0dda remove all the async query stuff in favor of the new Do() 2012-08-06 20:08:48 +02:00
Miek Gieben
f090b34c40 Use the new api - now on to fixing Tsig 2012-08-06 20:03:46 +02:00
Miek Gieben
e628564f33 Fix attempts in the client 2012-08-05 18:36:36 +02:00
Miek Gieben
51e13a15c9 snapshot 2012-08-05 18:13:23 +02:00
Miek Gieben
a113c7acd8 bug fix 2012-07-05 15:37:06 +02:00
Miek Gieben
6930a3a307 Tweaks for get a secure lookup going 2012-06-05 09:31:50 +02:00
Miek Gieben
53b065793b More preparation for the root 2012-06-03 09:35:39 +02:00
Miek Gieben
bb376b18b3 Add size received to a pkt 2012-06-01 10:05:27 +02:00
Miek Gieben
530d66a85b Set the channels in Do() 2012-05-26 12:02:37 +02:00
Miek Gieben
9c4c5f5369 remove NewClient from the code 2012-05-26 10:28:32 +02:00
Miek Gieben
458a74b8ce remove the need for NewClient() 2012-05-26 10:24:47 +02:00
Miek Gieben
eb7b7c9745 fix udp/udp4/udp6 2012-05-22 20:15:30 +02:00
Miek Gieben
da983acc37 documentation 2012-05-22 20:14:15 +02:00
Miek Gieben
c84b165dee fix examples 2012-05-22 08:51:30 +02:00
Miek Gieben
f3bb703019 gofmt 2012-05-22 08:48:26 +02:00
Miek Gieben
3e607a3c64 again better naming 2012-05-22 08:47:47 +02:00
Miek Gieben
fac9182aa6 better names 2012-05-21 22:06:58 +02:00