Commit Graph

33 Commits

Author SHA1 Message Date
Stuckinaboot
965a76fc9f increase sleep 2019-04-10 17:56:55 -04:00
Stuckinaboot
13fc699b36 Add driver that launches both nodes together 2019-04-10 17:56:10 -04:00
Stuckinaboot
d50027c1ca Modify files for debugging. Nothing will hit master from here 2019-04-10 17:44:00 -04:00
Stuckinaboot
c552134c7c Add more basic platform to debug 2019-04-10 17:43:09 -04:00
Stuckinaboot
db8eae74e5 Add receiver ID handling 2019-04-09 21:37:25 -04:00
Stuckinaboot
ebda40e034 Add print statements to receiver 2019-04-09 21:12:51 -04:00
Stuckinaboot
7f80d12007 Implement receiver driver 2019-04-09 21:12:25 -04:00
Stuckinaboot
cd43db0861 Clean up code 2019-04-07 21:29:45 -04:00
Stuckinaboot
8acec4d2ed Update simple_1_chain 2019-04-07 21:06:57 -04:00
Stuckinaboot
00257238f5 Remove unnecessary loop conditions 2019-04-07 20:56:59 -04:00
Stuckinaboot
fa7251cb68 Add graph generator 2019-04-07 19:59:33 -04:00
Stuckinaboot
9277be98bf Add end messages into simplified logic 2019-04-07 18:40:01 -04:00
Stuckinaboot
470f5e6e51 Add read topology from file 2019-04-07 16:36:05 -04:00
Stuckinaboot
86dfc07321 Simplify sender and receiver logic 2019-04-07 15:24:56 -04:00
Stuckinaboot
7bacc8ca08 Remove unused code 2019-04-07 14:48:59 -04:00
Stuckinaboot
fe14c24a89 Add working multi-topic test 2019-04-07 14:46:01 -04:00
Stuckinaboot
f570b19db8 Add multi-topic benchmark capability 2019-04-07 14:25:59 -04:00
Stuckinaboot
82f881a49a Not working as of now. Debugging 2019-04-06 23:09:26 -04:00
Stuckinaboot
08f845cc21 Lay groundwork for transition to multiple topics 2019-04-06 17:48:06 -04:00
Stuckinaboot
25def0c7d6 Implement end-to-end perform testing 2019-04-06 17:16:37 -04:00
Stuckinaboot
66427cd6f5 Modify sender and receiver to be classes 2019-04-06 14:55:06 -04:00
Robert Zajac
ba358335df scaffolding sender/receiver 2019-04-06 14:23:52 -04:00
Robert Zajac
e34603c364
fixing chat to use public IP (#122) 2019-02-10 20:52:05 -05:00
Aliabbas Merchant
bfb2c73810 Fixed some issues with the chat example (#120)
* Fixed some issues with the chat example

* Bump version to Python 3.7 (#121)

* bump version

* enable 3.7 in travis

* Minor refactor
2019-02-10 13:07:42 -05:00
Jorropo
82d08a3b14 chat.py very little code refactor. (#112)
That was an useless duplicate
2019-01-30 23:54:55 -05:00
Alexander Koshkin
d629a0c85e Fix examples/chat/chat.py. Extract test requirements to .travis.yaml file. 2019-01-09 22:01:46 +03:00
Christophe de Carvalho Pereira Martins
97e554e265
make the chat example a runnable test
fixes #71
2018-12-21 09:03:20 +01: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
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
csunny
c950e065f3 Add more info for chat example 2018-11-26 16:34:38 +08:00
csunny
22010447b5 fix run error 2018-11-26 15:56:43 +08:00
zixuanzh
ff6fdccea4 refactor libp2p 2018-11-25 01:45:13 -05:00
Christophe de Carvalho Pereira Martins
b80df48d37
move chat.py into examples directory 2018-11-19 17:29:48 +01:00