| 1 |
from abc import ABCMeta, abstractmethod |
| 2 |
|
| 3 |
class StreamHandler(metaclass=ABCMeta): |
| 4 |
def __init__(self): |
| 5 |
pass |
| 6 |
|
| 7 |
@abstractmethod |
| 8 |
def handleFromHost(self, data:bytearray): |
| 9 |
pass |
| 10 |
|
| 11 |
@abstractmethod |
| 12 |
def handleToHost(self, data:bytearray): |
| 13 |
pass |
| 14 |
|