muxer scaffolding

This commit is contained in:
zixuanzh
2018-10-31 23:02:00 +01:00
parent 19650d0f72
commit 8756320e85
6 changed files with 22 additions and 19 deletions

View File

@ -1,11 +1,12 @@
from .muxed_stream_interface import IMuxedStream
class MuxedStream(IMuxedStream):
"""
reference: https://github.com/libp2p/go-mplex/blob/master/stream.go
"""
def __init__(self, stream_id, stream_name):
self.id = stream_id
"""
reference: https://github.com/libp2p/go-mplex/blob/master/stream.go
"""
def __init__(self, protocol_id, stream_name):
self.protocol_id = protocol_id
self.name = stream_name
def read(self):
@ -15,7 +16,7 @@ class MuxedStream(IMuxedStream):
pass
def close(self):
pass
pass
def reset(self):
"""