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
stuckinaboot
7fa674dee2
Protocol muxing ( #82 )
...
* Implement protocol muxing
* Integrate protocol muxing into new stream and listen's conn handler
* Fix bugs in protocol muxing
* Remove blank line
* Add comments and fix linting issues
* Fix order of parameters to select_one_of to match interface
* Use array of protocol ids in new stream instead of protocol id
* Add basic protocol muxer tests
* Add todo
* Modify new stream to take in protocol ids
* Add check to all tests to ensure protocol id is saved to net stream properly
* Lint tests
* Fix lint issues
* Add todo
* Modify port numbers in tests
* Fix linting issues
* Add more documentation to functions
* Add docs describing classes and fix indent error
2018-11-28 13:51:50 -05:00
ZX
8bcffb67cb
WIP CI Build Errors ( #76 )
...
* ignore TODO and kademlia
* remove unnecessary pass
* fixed swarm warnings
* fixed peerdata_interface warnings
* fixed peer warnings
* fixed rest of linting errors
* trying to fix last error
* fixed dup errors
2018-11-26 18:24:29 -05:00
Robert Zajac
592ef69d8d
Improved stream IDs
2018-11-25 11:05:56 -05:00
zixuanzh
2569eac3a0
lint
2018-11-20 23:49:37 -05:00
Christophe de Carvalho Pereira Martins
9123760191
WIP: chat example
2018-11-18 23:38:45 +01:00
Christophe de Carvalho Pereira Martins
96edf96e76
make stream close async
2018-11-18 23:38:39 +01:00
zixuanzh
c5c9d3e5c9
lint
2018-11-12 13:02:49 -05:00
Robert Zajac
61e11a2716
adding additional bugfixed files
2018-11-12 11:00:43 -05:00
Robert Zajac
e2b7ad8926
minor fix
2018-11-11 20:46:32 -05:00
Robert Zajac
87c3da6c66
swarm listen done
2018-11-11 20:41:06 -05:00
Robert Zajac
f54a3c52d8
WIP swarm listen
2018-11-11 20:29:55 -05:00
Robert Zajac
684cb90908
WIP swarm listen
2018-11-11 20:29:17 -05:00
Alex Haynes
1bfa1f1ba5
upgrade connection
2018-11-11 19:37:07 -05:00
Alex Haynes
d0e6d00b15
Merge branch 'master' of https://github.com/zixuanzh/py-libp2p into mux-conn
2018-11-11 17:35:33 -05:00
Stuckinaboot
f6f2f6725d
Describe listen stub
2018-11-11 17:10:37 -05:00
Stuckinaboot
4851137ece
Implement new stream function
2018-11-11 16:42:10 -05:00
Stuckinaboot
6ba5793c1d
Reorganize folders (stream and connection)
2018-11-11 16:09:37 -05:00
Stuckinaboot
356cac02bf
Add mux stream
2018-11-11 16:04:57 -05:00
Robert Zajac
4871e78512
merging master
2018-11-11 12:37:39 -05:00
Robert Zajac
4681e1e08d
libp2p end to end test
2018-11-11 12:36:15 -05:00
Alex Haynes
35ce827ebe
fixed imports in swarm
2018-11-11 11:58:48 -05:00
Alex Haynes
65fe2e400e
connecting open_stream to stream constructor
2018-11-11 11:52:26 -05:00
zixuanzh
af6784546e
entry point wip
2018-11-11 10:43:03 -05:00
zixuanzh
2bde260f5f
refactor for sprint
2018-11-11 09:56:44 -05:00
ZX
330ed8363a
Merge pull request #28 from zixuanzh/raw-connection
...
Raw connection
2018-10-31 23:32:11 +01:00
zixuanzh
f77e7bee95
lint network
2018-10-31 23:31:52 +01:00
Stuckinaboot
bab97f5648
Implement new stream
2018-10-31 22:40:01 +01:00
zixuanzh
19650d0f72
muxer scaffolding
2018-10-31 22:31:00 +01:00
zixuanzh
5f9c3026aa
restructured
2018-10-31 19:56:24 +01:00
Robert Zajac
3765a5a636
Multiaddr to_options and validation
2018-10-27 15:53:00 -04:00
zixuanzh
64a82fd470
transport scaffolding
2018-10-27 00:06:56 +02:00
zixuanzh
4f5f953523
listener interface
2018-10-26 22:16:24 +02:00
zixuanzh
b89710a40b
transport interface
2018-10-26 22:09:39 +02:00
zixuanzh
6e46e3ec09
conn interface
2018-10-26 21:11:51 +02:00
zixuanzh
4bae3ad3c1
rename MultiAddr
2018-10-26 00:45:41 +02:00
Alex Haynes
b8a7f6dd49
Merge pull request #14 from zixuanzh/multiaddr
...
Adding new methods to multiaddr and commenting
2018-10-21 15:23:09 -04:00
Robert Zajac
9db53a6fb1
Adding new methods to multiaddr and commenting
2018-10-21 15:19:22 -04:00
Alex Haynes
51921fe728
fixed super and multi_addr variable name
2018-10-21 15:11:27 -04:00
Alex Haynes
f32b0cc3ef
removed comments
2018-10-21 14:49:20 -04:00
Alex Haynes
08b37ee7cd
updated to not require peerstore
2018-10-21 14:48:53 -04:00
Alex Haynes
f51f975533
fixed merge conflicts
2018-10-21 14:28:02 -04:00
stuckinaboot
667d03344f
Merge pull request #11 from zixuanzh/multiaddr
...
Basic multiaddr representation.
2018-10-21 14:22:31 -04:00
Robert Zajac
d59a0907b4
Updating with results from pylinter
2018-10-21 14:16:26 -04:00
Robert Zajac
f538d36947
Basic multiaddr representation.
2018-10-21 14:06:56 -04:00
Alex Haynes
15978eae11
added function to swarm
2018-10-21 13:51:55 -04:00
Alex Haynes
5934eaffd0
added listen to interface
2018-10-21 13:44:39 -04:00
Alex Haynes
007d9915e2
implemented stream io interactions
2018-10-21 13:35:56 -04:00
zixuanzh
9e64202e5c
basic-host and remove context
2018-10-21 12:55:45 -04:00
Alex Haynes
48dfd9a77a
started on stream
2018-10-20 13:42:16 -04:00