invoke server
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Attila Szigeti 2021-04-25 17:29:50 +02:00
parent 15bd2b13ca
commit c5d89d8b13

View File

@ -13,7 +13,7 @@ class Server:
self.availableServer = availableServer
self.executor = Executor(homeDirectory)
self.auth=Authetication()
self.networkInstance = NetWrapper(_,_,self)
self.networkInstance = NetWrapper(self.auth.loadUserPublicKeys(),self.auth.loadServerPrivateKey(),self)
def login(self, username: str, password: str) -> bool:
self.isAuthenticated = True
@ -89,3 +89,9 @@ class Server:
pass
else:
return "ERROR"
def startServer(self):
while (True):
self.networkInstance.recieveMessage()
startServer()