added listen to interface

This commit is contained in:
Alex Haynes
2018-10-21 13:44:39 -04:00
parent 0e7d8dd927
commit 5934eaffd0

View File

@ -21,3 +21,10 @@ class INetwork(ABC):
:return: stream instance
"""
pass
@abstractmethod
def listen(self, *args):
"""
:param *args: one or many multiaddrs to start listening on
:return: true if at least one success
"""