Compare commits

...

2 Commits

Author SHA1 Message Date
Attila Szigeti f6461273ab Merge branch 'master' of https://git.kmlabz.com/BiztProtoBois/server
continuous-integration/drone/push Build is passing Details
2021-04-25 17:50:50 +02:00
Attila Szigeti 7628156340 server execute 2021-04-25 17:50:39 +02:00
1 changed files with 11 additions and 1 deletions

View File

@ -107,4 +107,14 @@ class Server:
def startServer(self):
while True:
message = self.networkInstance.recieveMessage().decode('UTF-8')
self.parseCommand(message)
command = self.parseCommand(message)
#ha LINOK vagy LINERROR donothing
if command == "LINERROR" or command == "LINOK" or command == "ERROR":
print("not right commands")
elif len(command) == 1:
execute_message = self.execute(self,command, "", "")
elif len(command) == 2:
execute_message = self.execute(self, command, command[1], "")
elif len(command) == 3:
execute_message = self.execute(self, command, command[1], command[2])
self.networkInstance.sendMessage(self, execute_message)