Matt Joiner
3e0f34934d
gorond ./...
2022-11-15 23:31:27 +11:00
Matt Joiner
5501f994ca
Move a bunch of stuff into subpackages
...
The core package is very large now, and often only parts of it are needed.
2022-11-15 23:31:26 +11:00
FIGBERT
7d41b9b21c
Pass client logger to anacrolix/go-libutp sockets ( #722 )
...
* Update anacrolix/go-libutp (v1.1.0 -> v1.2.0)
* Pass client logger to anacrolix/go-libutp
* Pass logger instead of option
The project now compiles properly when CGO is not enabled.
Additionally, the new argument (now log.Logger instead of
utp.NewSocketOpt) is now required. The tests have been updated to match
this change, and now pass logger.Default to NewUtpSocket.
* Correct function signature of NewUtpSocket
2022-02-15 16:18:32 +11:00
Matt Joiner
48fa9b59fd
Fix go-libutp import when CGO is disabled
2021-12-16 14:19:21 +11:00
Matt Joiner
26b521b41c
Explicitly use go-libutp synchronous firewall callback
2021-12-12 21:32:29 +11:00
Matt Joiner
c3c982b621
Fixes for wasm
2021-06-23 17:24:50 +10:00
Matt Joiner
b9c7d6266b
Tidy up the Dialer interface
2021-06-21 13:29:26 +10:00
Matt Joiner
765edfa7cb
Expose DialFirst
2021-06-21 12:54:57 +10:00
Matt Joiner
e6da640bb2
Tidy up doc, file names, naming
2020-11-09 10:56:45 +11:00
Matt Joiner
d24922dc09
Add support for non-IP-based networks
...
Includes a test with unix sockets. Exposes AddDialer, AddListener, and reworks Peer.
2020-02-20 16:47:37 +11:00
Matt Joiner
e9e128cbf8
Split Client dialers and listeners
2020-02-20 11:10:05 +11:00
Steve Yoon
d34dfa6575
propagate proxy url parsing err
2020-01-02 09:18:14 +10:00
Sick Yoon
32579e72c7
disable listeners if proxy is configured
2020-01-02 09:18:14 +10:00
Matt Joiner
d9e1ebde70
Improve network handling and only listen networks we will use
...
Fixes #290 .
2018-11-28 10:30:21 +11:00
Matt Joiner
3ba991e38a
Remove unused code
2018-11-27 23:57:17 +11:00
Matt Joiner
7f133b677c
Improve error handling for listening
...
Will help with #290 .
2018-11-19 20:35:21 +11:00
Matt Joiner
2940f27f9f
Use the new firewall callback support in go-libutp
2018-07-25 17:11:09 +10:00
Matt Joiner
fad06c7ddf
sortimports
2018-07-07 11:36:58 +10:00
Matt Joiner
ad5e44eaf5
Add lots of new expvars and perf timers
2018-06-15 22:42:05 +10:00
Matt Joiner
2fb1c022f5
Use DialContext for tcp again
...
It got lost somewhere along the way.
2018-06-15 14:34:58 +10:00
Denis
f6ed514c3b
added proxy support to the library, using ProxyURL parameter. ( #256 )
2018-06-08 20:52:36 +10:00
Matt Joiner
b5df073217
Support different hosts for each network
...
CircleCI's localhost hostname doesn't resolve for IPv6.
2018-04-12 15:06:53 +10:00
Matt Joiner
319e57d1c6
Rework conns to/and allow multiple DHT servers
...
This will help with #229 , and IPv6 support.
2018-04-12 11:41:07 +10:00