Commit Graph

37 Commits

Author SHA1 Message Date
Aarsh Shah
82be3ee46f signal address change 2020-03-25 00:10:23 +05:30
Aarsh Shah
ed4646f711 local addr updated event 2020-03-19 19:05:15 +05:30
Steven Allen
e5d28696f5 feat(host): recursively resolve addresses
We currently only resolve /dnsaddr addresses once. This patch resolves up to 32
dnsaddr addresses per dial.

fixes https://github.com/libp2p/go-libp2p/issues/744
2019-12-16 15:53:51 +01:00
Christian Muehlhaeuser
40cb489097 Fixed typos (#680)
Just a few nit-picky typo fixes.
2019-07-22 13:44:24 +01:00
Steven Allen
4c28cc75df test: fix test fallout from notify push 2019-07-04 13:11:48 -07:00
Steven Allen
3a41aa03ac test: mark helpers 2019-07-04 12:56:20 -07:00
Steven Allen
97f639055e test: ensure double-closing the host doesn't cause any issues 2019-07-04 12:47:33 -07:00
Raúl Kripalani
e69d17141c integrate the event bus, handle protocol update events, make identify emit deltas (#659) 2019-06-24 14:44:47 +01:00
Raúl Kripalani
d87f89314c Consolidate abstractions and core types into go-libp2p-core (#601) 2019-05-26 22:55:46 +01:00
Steven Allen
63256192d7 fix buggy addr equal in test 2018-10-24 08:44:26 -07:00
Steven Allen
41c6834850 refactor for transport changes
Also, make the libp2p constructor fully useful. There should now be no need to
manually construct a swarm/host.
2018-06-04 21:22:24 -07:00
Kevin Atkinson
af895a81d5 Fix most "go vet" errors. 2017-11-16 20:05:22 -05:00
Steven Allen
7cdd4bc984 Reset on error in basic_host 2017-09-13 15:49:53 -07:00
Lars Gierth
0c23c9684c Resolve /dns4, /dns6, /dnsaddr multiaddrs 2017-08-07 05:07:58 +02:00
Lars Gierth
6cbb93905b basichost: allow overriding Addrs() 2017-05-30 20:39:08 +02:00
Jeromy
104c97ed57 update go-multistream and use negotiateLazy to allow for readonly streams 2017-01-05 08:10:26 -08:00
Jeromy
f4ea270ccb use set protos in identify protocol knowledge gathering 2016-11-18 15:09:18 -08:00
Jeromy
f61f242f69 Extract netutil to its own package 2016-11-17 10:58:15 -08:00
Jeromy
1a53ad77b9 extract host interface 2016-10-04 16:16:24 -07:00
Jeromy
cea1fe131f extract net interface and metrics 2016-10-04 13:56:20 -07:00
Jeromy
1085a07654 extract protocol and maddr-filter 2016-10-03 21:47:08 -07:00
Jeromy
4dd30d824b switch to using stdlib context package 2016-10-03 11:00:00 -07:00
Jeromy
0b90707e39 update transport dep and add host test 2016-08-22 20:40:17 -07:00
Jeromy
f74add8a19 swarm: make stream.Protocol() return type protocol.ID 2016-08-18 11:16:01 -07:00
Jeromy
36c66c0e93 host: add wait for handshake in proto preknowledge test 2016-08-18 11:16:01 -07:00
Jeromy
fc64ec9027 host: add tests for protocol preferences in host 2016-08-18 11:16:00 -07:00
Jeromy
7a3394b1da host: remember which protocols work for a given peer 2016-08-18 11:16:00 -07:00
Jeromy
8744e460da update local import paths to reflect org change 2016-08-10 09:59:14 -07:00
Jeromy
b0ad207270 rewrite all package paths to dvcs 2016-04-27 12:59:04 -07:00
Jeromy
ada8212cac path rewrites 2016-01-04 05:45:58 -08:00
Jeromy
d91b419ecf WIP 2015-12-06 23:11:16 -08:00
Jeromy
dafa3bf917 make new stream calls accept a context 2015-11-19 16:20:59 -08:00
Jeromy
9d40a0af19 migrate to gx namespace 2015-11-18 16:11:24 -08:00
Jeromy
0c73722a91 vendor in notifier 2015-11-15 18:42:27 -08:00
Jeromy
51fd99e363 extract from 0.4.0 2015-11-11 16:19:51 -08:00
Juan Batiz-Benet
2392434b6d rewrote imports to p2p 2015-09-30 19:24:00 -04:00
Juan Batiz-Benet
885d86219e move to p2p dir 2015-09-30 18:42:55 -04:00