mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
parent
390f2fa9f4
commit
97e554e265
@ -1,18 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
from os.path import dirname, abspath
|
||||
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
|
||||
|
||||
import asyncio
|
||||
import sys
|
||||
from os.path import abspath, dirname
|
||||
|
||||
import click
|
||||
|
||||
from libp2p.libp2p import *
|
||||
from network.multiaddr import MultiAddr
|
||||
from peer.peerinfo import info_from_p2p_addr
|
||||
|
||||
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
|
||||
|
||||
# TODO: change once muxed_connection supports extracting protocol id from messages
|
||||
PROTOCOL_ID = '/echo/1.0.0'
|
||||
|
||||
PROTOCOL_ID = '/chat/1.0.0'
|
||||
|
||||
|
||||
async def read_data(stream):
|
||||
|
||||
Reference in New Issue
Block a user