Commit Graph

7 Commits

Author SHA1 Message Date
Christophe de Carvalho Pereira Martins
2a324c0076
don't manually assign port during test
fixes #89
instead of saving the multiaddr received in the listen method of the
tcp transport class, read what the service is actually listening on
this allow to use 0 as port and let the OS choose a free port for us
2018-12-07 22:28:07 +02:00
Robert Zajac
803999310a refactoring stream IDs 2018-11-29 13:42:05 -05:00
Christophe de Carvalho
611de28aca Add basic support for multiaddr addresses and improvement around peer id (#75)
* Improved peer ID construction and usage

* peer id object is directly passed to the network

no need to cast from a string to an ID

* don't base64 encode the peer id when loading from public key

* use proper multiaddr address

- keep multiaddr object into peerstore instead of string
- update network code to use new multiaddr lib
- update tests and example

* don't instanciate peerstore object in constructor

This has side effect where the same peerstore
is used for different instance of Libp2p

* add connect method to basic_host

* use zaibon's fork of sbuss/py-multiaddr

* lint
2018-11-29 10:06:40 -05:00
Robert Zajac
61e11a2716 adding additional bugfixed files 2018-11-12 11:00:43 -05:00
Robert Zajac
684cb90908 WIP swarm listen 2018-11-11 20:29:17 -05:00
Alex Haynes
a785876c16 restructured raw connection 2018-11-11 12:17:12 -05:00
Robert Zajac
f71bea3f7f moving tcp 2018-11-11 10:49:25 -05:00