Compare commits

..

2 Commits

Author SHA1 Message Date
Attila Szigeti
f345d4b961 Merge branch 'master' of https://git.kmlabz.com/BiztProtoBois/server
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-25 18:19:18 +02:00
Attila Szigeti
487f5ec772 UPL 2021-04-25 18:19:08 +02:00

View File

@ -94,13 +94,14 @@ class Server:
if secondParam != "": if secondParam != "":
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
else: else:
# TODO fileName = firstParam
# Megkapod a filenevet argumentumneknt fileMessage = self.networkInstance.recieveMessage()
# Fogadni kell egy uzenetet, ami a fajl tartalma eof = self.networkInstance.recieveEncryptedMessage().decode('UTF-8')
# Fogadni kell egy uzenetet, ami "EOF" if eof == "EOF":
# Mindig minden legyen UTF-8-kent kodolva, kiveve a falj, az marard self.executor.putFileInCurrentDirectory(fileName, fileMessage)
# Ha sikeres, OK kuldese, kulonben ERROR kuldese self.networkInstance.sendMessage("OK".encode('UTF-8'))
pass else:
self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
elif command == "DNL": elif command == "DNL":
if secondParam != "": if secondParam != "":
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) self.networkInstance.sendMessage("ERROR".encode('UTF-8'))