Matt Joiner
f83771b660
Apply ineffassign linter
2016-04-04 15:39:26 +10:00
Matt Joiner
2fa233345e
dht: Rename newDHTAddr->NewAddr, and clean up the interface
2016-02-24 02:02:33 +11:00
Matt Joiner
621ec7bac4
dht: Misc trivial improvements
2016-02-23 23:52:30 +11:00
Matt Joiner
127fad47dd
dht: Move security tests into separate file
2015-12-17 23:36:57 +11:00
Matt Joiner
565fb20139
Add OnQuery hook, thanks to Cathal Garvey
2015-12-16 15:20:37 +11:00
Matt Joiner
6d8310d2df
Test improvements
2015-12-16 15:16:53 +11:00
Matt Joiner
44ec4d9bdb
Add NodeIdHex config option
2015-12-16 15:15:59 +11:00
Matt Joiner
4798907da4
Add NoDefaultBootstrap and use it and testify in a few tests
2015-12-16 15:13:32 +11:00
Matt Joiner
86b0c02eac
Use testify for some tests
2015-12-16 15:06:23 +11:00
Matt Joiner
ff835db955
Actually fix #41 properly; and several big changes
...
bencode:
* Handle omitempty on non-trivial types.
cmd/dht-ping:
* Handle timeouts in ping transactions.
dht:
* Propagate failed transaction responses properly.
* Msg related tests are moved into their own file.
* In some places, IPs in binary form are shorted to 4 bytes if IPv4.
2015-12-07 03:28:28 +11:00
Matt Joiner
99a0813d88
dht: Make Msg a struct with bencode tags
2015-10-23 12:41:45 +11:00
Matt Joiner
3204e276f2
dht: Improve on on Msg methods
2015-08-18 02:11:09 +10:00
Matt Joiner
89f024a76b
dht: Revive the UnmarshalGetPeersResponse test
2015-08-18 02:08:08 +10:00
Matt Joiner
a0cdda16a4
dht: Expose SecureNodeId and NodeIdSecure
2015-08-05 02:37:43 +10:00
Matt Joiner
d077fed72d
Some utils moved to missinggo
2015-08-04 00:29:01 +10:00
Matt Joiner
b706150607
dht: Implement the DHT security extension
2015-05-20 22:23:50 +10:00
Matt Joiner
6b81d57ca2
dht: Clean-up interface, add loads of documentation
2015-04-01 17:29:55 +11:00
Matt Joiner
a372b68abb
dht: Handle responses through a callback
...
Trying to reduce number of goroutines
2015-02-21 15:00:48 +11:00
Matt Joiner
e0d936e920
dht: Various improvements and removal of cruft
2014-12-26 17:21:48 +11:00
Matt Joiner
b52f866e90
dht: We can now message nodes with no ID if there's nothing better
2014-12-09 00:25:49 -06:00
Matt Joiner
02160eb8bc
Expose DHT ID distances as an interface and switch to big.Int and possibly the correct algorithm
2014-11-17 01:47:24 -06:00
Matt Joiner
5bf56f6d8d
Tunnel addrs through dht as an internal interface to make switching easier
2014-11-16 21:22:29 -06:00
Matt Joiner
3e26952f2f
Improve DHT distance tests
2014-08-22 03:45:31 +10:00
Matt Joiner
4a7c94d04d
Add test for dht.NewServer and change StopServing to Close
2014-08-21 21:12:50 +10:00
Matt Joiner
9c575b0454
dht_test: Add commented out test I haven't resolved yet
2014-07-17 16:05:21 +10:00
Matt Joiner
e7cb8a138b
Begin implementing a K closest node algorithm
2014-06-24 23:20:49 +10:00
Matt Joiner
83a02420a5
Got dht-server working nicely
2014-05-27 16:28:56 +10:00
Matt Joiner
1b69e69461
Switch dht-server to bootstrapping
2014-05-25 21:34:29 +10:00