Compare commits

..

No commits in common. "ccc664e0eaab75f12ce8f5e66ab22154d4670715" and "b6d46ea1bf5b3b78539c5c3c9488e739a532d1b2" have entirely different histories.

View File

@ -107,12 +107,13 @@ class Server:
if secondParam != "": if secondParam != "":
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) self.networkInstance.sendMessage("ERROR".encode('UTF-8'))
else: else:
try: # TODO
file = self.executor.getFileInCurrentDirectory(firstParam) # Megkapod a filenevet arguemntumkent
self.networkInstance.sendMessage(file) # Kuldeni kell egy uzenetet, ami a falj tartalma
self.networkInstance.sendMessage("OK".encode('UTF-8')) # Kuldeni kell egy uzenetet, ami EOF
except: # Mindig minden legyen UTF-8-kent kodolva, kiveve a falj, az marard
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) # Ha sikeres, OK valaszt megkapod, kulonben ERROR valaszt megkapod
pass
else: else:
self.networkInstance.sendMessage("ERROR".encode('UTF-8')) self.networkInstance.sendMessage("ERROR".encode('UTF-8'))