* Update more test for peerid.py
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Update more tests for peerid.py
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Update more tests for peerid.py
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Update more unit tests
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Update more unit tests
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* FIx travis failaure
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix travis failaure
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Update indent-string to tab
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Convert indent back to space
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Disable W0212 and E1120
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix lines that too long
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix failure from travis
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Fix failure from travis
Signed-off-by: Tran Ly Vu <tranly.vu@accellion.com>
* Remove W0212 and E1120
Signed-off-by: Tran Ly Vu <vutransingapore@gmail.com>
* Fix packages import
Signed-off-by: Tran Ly Vu <vutransingapore@gmail.com>
* Add pylint dsiable
Signed-off-by: Tran Ly Vu <vutransingapore@gmail.com>
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
* 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
* 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
* working on blocking queues
* my mplex and delete muxer
* progress
* dont understand error
* tests passing
* cleaning up
* working on reading messages
* implmented varint reading from stream, rewrote message reading logic
* linting error in utils fix
* Update tcp.py
* removed unused vars
* removed prints
* added doc strings