mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
muxed stream
This commit is contained in:
@ -1,11 +1,18 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class IMuxedConn(ABC):
|
||||
"""
|
||||
reference: https://github.com/libp2p/go-stream-muxer/blob/master/muxer.go
|
||||
"""
|
||||
|
||||
# TODO closer
|
||||
@abstractmethod
|
||||
def close(self):
|
||||
"""
|
||||
close connection
|
||||
:return: true if successful
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def is_closed(self):
|
||||
|
||||
Reference in New Issue
Block a user