connecting open_stream to stream constructor

This commit is contained in:
Alex Haynes
2018-11-11 11:52:26 -05:00
parent 7d4227f269
commit 65fe2e400e
3 changed files with 14 additions and 7 deletions

View File

@ -1,4 +1,5 @@
from .muxed_connection_interface import IMuxedConn
from transport.stream.Stream import Stream
class MuxedConn(IMuxedConn):
"""
@ -26,12 +27,14 @@ class MuxedConn(IMuxedConn):
"""
pass
def open_stream(self, protocol_id, stream_name):
def open_stream(self, protocol_id, stream_name, peer_id, multi_addr):
"""
creates a new muxed_stream
:return: a new stream
"""
pass
return Stream(peer_id, multi_addr, self)
def accept_stream(self):
"""