WIP swarm listen

This commit is contained in:
Robert Zajac
2018-11-11 20:29:17 -05:00
parent bc59a051ab
commit 684cb90908
6 changed files with 57 additions and 30 deletions

View File

@ -3,8 +3,9 @@ from abc import ABC, abstractmethod
class INetwork(ABC):
@abstractmethod
def set_stream_handler(self, stream_handler):
def set_stream_handler(self, protocol_id, stream_handler):
"""
:param protocol_id: protocol id used on stream
:param stream_handler: a stream handler instance
:return: true if successful
"""