Separate responsibilities of controller and session

This commit is contained in:
Andrew Kay
2019-06-20 21:10:45 -05:00
parent 5cff18e924
commit f233cc41ba
3 changed files with 99 additions and 77 deletions

15
oec/session.py Normal file
View File

@@ -0,0 +1,15 @@
class Session:
def start(self):
raise NotImplementedError
def terminate(self):
raise NotImplementedError
def handle_host(self):
raise NotImplementedError
def handle_key(self, key, keyboard_modifiers, scan_code):
raise NotImplementedError
class SessionDisconnectedError(Exception):
pass