vyzo
3b2f464171
RoutedHost: use Connect directly in NewStream
7 years ago
vyzo
daaf97b416
RoutedHost: NewStram ensures we have the means to connect to the peer
7 years ago
Jeromy
665234f694
WIP: add ConnManager interface method
7 years ago
Jeromy
dfaa021cd7
gx publish 4.4.1
7 years ago
Enzo Haussecker
e9c24fdc2d
Create interface for NAT manager
8 years ago
Enzo Haussecker
e571f8a3fb
Publicize NAT manager struct
8 years ago
Lars Gierth
f0453a2458
basichost: refactor BasicHost construction
There were previously 4 different ways of passing various options
into BasicHost construction.
1. Function parameters to New
2. Option parameters to New
3. Global variables, e.g. NegotiateTimeout
4. Options struct, in the calling code in go-ipfs
This changeset deprecated all of these, and introduces the HostOpts
struct to replace them. It also introduces a new constructor called
NewHost, which accepts a *HostOpts.
The old New constructor continues to work the same way,
but is from now on deprecated too.
8 years ago
Lars Gierth
6cbb93905b
basichost: allow overriding Addrs()
8 years ago
Jakub Sztandera
ed98e37176
Extend time of observation by the factor of ActivationThresh
8 years ago
Jakub Sztandera
955ebe34a7
Fix obsaddr_test compare function
8 years ago
Jakub Sztandera
356f5ab17d
Modify ObservedAddrSet to better detect our active addrs
8 years ago
Lars Gierth
12f881c55a
Remove unused and unfit relay protocol
8 years ago
Jeromy
31557da822
fix multistream import paths
8 years ago
Jeromy
104c97ed57
update go-multistream and use negotiateLazy to allow for readonly streams
8 years ago
Jeromy
26adf7395b
identify: make agent version mutable
8 years ago
Jeromy
f4ea270ccb
use set protos in identify protocol knowledge gathering
8 years ago
Jeromy
f61f242f69
Extract netutil to its own package
8 years ago
Jeromy
6bccc8c1f5
fix dial log
8 years ago
Jeromy
4f17a651d1
add negotiate timeout option to basichost
8 years ago
Jeromy
077aae473b
make bandwidth metrics optional
8 years ago
Jeromy
6f804db71e
update dependencies and add deadline methods to streams
8 years ago
Jeromy
232864175d
make sure to always close streams when youre done with them
8 years ago
Jeromy
1bad77c7db
update packages to add support for getStreams
8 years ago
Jeromy
0e7e451d69
extract NAT traversal code to its own lib
8 years ago
Jeromy
b130e2a7b1
fix import and update travis scripts
8 years ago
Jeromy
7aced371c7
extract libp2p-swarm
8 years ago
Jeromy
70872ff663
update deps
8 years ago
Jeromy
1a53ad77b9
extract host interface
8 years ago
Jeromy
9910e6a7cf
switching to separated conn and interface-conn packages
8 years ago
Jeromy
cea1fe131f
extract net interface and metrics
8 years ago
Jeromy
0f3ffb2d07
extract conn, addr-util, and testutil
8 years ago
Jeromy
1085a07654
extract protocol and maddr-filter
8 years ago
Jeromy
4dd30d824b
switch to using stdlib context package
8 years ago
Jakub Sztandera
4172857109
fix locking issue introduced in 90eeff42fc
8 years ago
Jeromy
5b6ab8c326
update mdns to version with fixed race condition
8 years ago
Jeromy
2eef5a702e
split tcp transports out of the base package
8 years ago
Jeromy
e6a5c5c241
don't block on DiscoverHandler
8 years ago
Jeromy
9441754369
swarm: add deadline for connection setup
8 years ago
Jeromy
d70e1625a8
conn/dial: implement contextDial up the stack
8 years ago
Jakub Sztandera
90eeff42fc
nat: add locks around nat
8 years ago
Jakub Sztandera
b6bfae67a0
nat: split into files
8 years ago
Jakub Sztandera
51ffdf87d4
nat: do not shortcircuit permanent mappings
If we use same NAT agent and call for the same permanent mapping
again we get the same mapping, no harm done.
If router dies, we will remap again.
Just pros, no cons.
8 years ago
Jakub Sztandera
a3bf168759
Retry NAT punching without duration on mapping failure
Some hardware doesn't support UPnP with durations.
8 years ago
jbenet
aafaf38683
identify: handle case where local peer.ID is empty
8 years ago
jbenet
17d39398e9
identify: tests verify we have public keys
8 years ago
jbenet
83eddcae92
identify: consume public key in message.
Make sure to verify that our keys match.
In the rare event they do not, make sure to investigate
what's wrong, and log errors.
8 years ago
jbenet
65273ab3e7
identify: send public key in message
8 years ago
Jeromy
126e150674
swarm: integrate new dialsync code into swarm
8 years ago
Jeromy
e26950ff77
swarm: implement new DialSync manager code
8 years ago
Jeromy
71efb2ccb2
swarm: perform backoff check before taking dialsync lock
8 years ago