muxed stream

This commit is contained in:
zixuanzh
2018-11-11 18:03:04 -05:00
parent 55dae3ed1e
commit fe20d25882
5 changed files with 122 additions and 18 deletions

View File

@ -32,10 +32,8 @@ class MuxedConn(IMuxedConn):
creates a new muxed_stream
:return: a new stream
"""
return Stream(peer_id, multi_addr, self)
def accept_stream(self):
"""
accepts a muxed stream opened by the other end