WIP swarm listen

This commit is contained in:
Robert Zajac
2018-11-11 20:29:17 -05:00
parent bc59a051ab
commit 684cb90908
6 changed files with 57 additions and 30 deletions

View File

@ -22,7 +22,7 @@ def test_simple_messages():
# associate the peer with local ip address (see default parameters of Libp2p())
hostA.get_peerstore().add_addr("hostB", "/ip4/127.0.0.1/tcp/10000")
stream = hostA.new_stream("hostB", "/echo/1.0.0")
stream = hostA.new_stream("hostB", "/app/1.0.0")
message = "hello"
stream.write(message.encode())